Apply suggestions from code review
Co-authored-by: Tyera Eulberg <teulberg@gmail.com>
This commit is contained in:
committed by
mergify[bot]
parent
f52fdc8546
commit
7ee07fd4e8
@ -526,15 +526,15 @@ spl-token-cli 2.0.1
|
|||||||
|
|
||||||
### Account Creation
|
### Account Creation
|
||||||
|
|
||||||
SPL Token accounts impose additional requirements as opposed to native System
|
SPL Token accounts carry additional requirements that native System
|
||||||
Program accounts.
|
Program accounts do not:
|
||||||
|
|
||||||
1. SPL Token accounts are not implicitly created, so must be created explicitly
|
1. SPL Token accounts are not implicitly created, so must be created explicitly
|
||||||
before an SPL Token balance can be deposited
|
before an SPL Token balance can be deposited
|
||||||
1. SPL Token accounts must remain [rent-exempt](https://docs.solana.com/apps/rent#rent-exemption)
|
1. SPL Token accounts must remain [rent-exempt](https://docs.solana.com/apps/rent#rent-exemption)
|
||||||
for the duration of their existence and therefore require a small amount of
|
for the duration of their existence and therefore require a small amount of
|
||||||
native SOL tokens be deposited at account creation. For SPL Token v2 accounts,
|
native SOL tokens be deposited at account creation. For SPL Token v2 accounts,
|
||||||
this amount is 2,039,280 Lamports (0.00203928 SOL).
|
this amount is 0.00203928 SOL (2,039,280 lamports).
|
||||||
|
|
||||||
#### Command Line
|
#### Command Line
|
||||||
To create an SPL Token account, for the given mint at a random address and owned
|
To create an SPL Token account, for the given mint at a random address and owned
|
||||||
@ -567,7 +567,7 @@ $ solana balance 6VzWGL51jLebvnDifvcuEDec17sK6Wupi4gYhm5RzfkV
|
|||||||
|
|
||||||
### Token Transfers
|
### Token Transfers
|
||||||
|
|
||||||
For SPL Token transfers to succeed a few prerequisite conditions must be met
|
For SPL Token transfers to succeed, a few prerequisite conditions must be met:
|
||||||
1. The recipient account must exist before the transfer is executed. As described
|
1. The recipient account must exist before the transfer is executed. As described
|
||||||
in [account creation](#account-creation), SPL Token accounts are *not* explicitly
|
in [account creation](#account-creation), SPL Token accounts are *not* explicitly
|
||||||
created.
|
created.
|
||||||
@ -591,8 +591,8 @@ Signature: 3R6tsog17QM8KfzbcbdP4aoMfwgo6hBggJDVy7dZPVmH2xbCWjEj31JKD53NzMrf25ChF
|
|||||||
|
|
||||||
### Deposits
|
### Deposits
|
||||||
Since each `(user, mint)` pair requires a separate account on chain, it is
|
Since each `(user, mint)` pair requires a separate account on chain, it is
|
||||||
recommended that batches of token accounts be created in advance and assigned
|
recommended that an exchange create batches of token accounts in advance and assign them
|
||||||
to users as requested. These accounts should all be owned by exchange-controlled
|
to users on request. These accounts should all be owned by exchange-controlled
|
||||||
keypairs.
|
keypairs.
|
||||||
|
|
||||||
Monitoring for deposits should follow the [block polling](#poll-for-blocks) method
|
Monitoring for deposits should follow the [block polling](#poll-for-blocks) method
|
||||||
@ -619,8 +619,8 @@ correct mint.
|
|||||||
|
|
||||||
#### Freeze Authority
|
#### Freeze Authority
|
||||||
For regulatory compliance reasons, an SPL Token issuing entity may optionally
|
For regulatory compliance reasons, an SPL Token issuing entity may optionally
|
||||||
choose to impose "Freeze Authority" over all accounts created in association with
|
choose to hold "Freeze Authority" over all accounts created in association with
|
||||||
it. This allows them to [freeze](https://spl.solana.com/token#freezing-accounts)
|
its mint. This allows them to [freeze](https://spl.solana.com/token#freezing-accounts)
|
||||||
the assets in a given account at will, rendering the account unusable until thawed.
|
the assets in a given account at will, rendering the account unusable until thawed.
|
||||||
If this feature is in use, the freeze authority's pubkey will be registered in
|
If this feature is in use, the freeze authority's pubkey will be registered in
|
||||||
the SPL Token's mint account.
|
the SPL Token's mint account.
|
||||||
|
Reference in New Issue
Block a user