You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 11, 2025. It is now read-only.
Copy file name to clipboardExpand all lines: docs/src/associated-token-account.md
+16-2Lines changed: 16 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,8 +7,22 @@ the user's wallet address to the associated token accounts they hold.
7
7
8
8
## Motivation
9
9
10
-
- A user may own arbitarily many token accounts belonging to the same mint which makes it difficult for other users to know which account they should send tokens to and introduces friction into many other aspects of token management. This program introduces a way to _deterministically_ derive a token account key from a user's main System account address and a token mint address, allowing the user to create a main token account for each token he owns. We call these accounts _Associated Token Accounts_.
11
-
- In addition, it allows a user to send tokens to another user even if the beneficiary does not yet have a token account for that mint. Unlike a system transfer, for a token transfer to succeed the recipient must have a token account with the compatible mint already, and somebody needs to fund that token account. If the recipient must fund it first, it makes things like airdrop campaigns difficult and just generally increases the friction of token transfers. AToken allows the sender to create the associated token account for the receiver, so the token transfer just works.
10
+
- A user may own arbitrarily many token accounts belonging to the same mint
11
+
which makes it difficult for other users to know which account they should send
12
+
tokens to and introduces friction into many other aspects of token management.
13
+
This program introduces a way to _deterministically_ derive a token account key
14
+
from a user's main System account address and a token mint address, allowing the
15
+
user to create a main token account for each token he owns. We call these
16
+
accounts _Associated Token Accounts_.
17
+
18
+
- In addition, it allows a user to send tokens to another user even if the
19
+
beneficiary does not yet have a token account for that mint. Unlike a system
20
+
transfer, for a token transfer to succeed the recipient must have a token
21
+
account with the compatible mint already, and somebody needs to fund that token
22
+
account. If the recipient must fund it first, it makes things like airdrop
23
+
campaigns difficult and just generally increases the friction of token
24
+
transfers. AToken allows the sender to create the associated token account for
25
+
the receiver, so the token transfer just works.
12
26
13
27
See the [SPL Token](token.md) program for more information about tokens in
0 commit comments