forked from cevap/ion
-
Notifications
You must be signed in to change notification settings - Fork 15
UseCases_tokens_Send tokens.md
ioncoincore edited this page Jul 8, 2019
·
1 revision
- Use Cases, Scenario’s, Walkthroughts - for tokens
- Case "Send tokens"
- Scenario**: Perform basic operations with tokens
- Feature**: Sending tokens
- Actor**: Any user
- Summary**:
- While the precision of regular ION transactions is 8 decimals after the decimal separator (which is the same as with Bitcoin), a token creator can specify how many decimals after the decimal separator he wants for his token group. DarkMatter for example knows a 13 decimal precision after the decimal separator. - The tokengroup ID is a unique identifier that is linked to a token group. For more information on linking tokengroup ID's to token names and token tickers, see the case "[View](UseCases_tokens_View-token-information.md)".
The command to use is: `token send [TOKENGROUPID] [IONADDRESS] [AMOUNT]`
- Preconditions**:
- Steps**:
$ tokeninfo ticker XDM
[
{
"groupIdentifier": "ionrt1z08suycj85usle25z7c8fy0pvqg82759dkant22edca55z5c8q0qc3czz0g",
"txid": "43fb5d0a4c7cdf2f1993bdfcf2d964ee00a44b8e7fd3ffab6b9aa7abf4693109",
"ticker": "XDM",
"name": "DarkMatter",
"decimalPos": 13,
"URL": "https://www.darkmatter.info/",
"documentHash": "0000000000000000000000000000000000000000000000000000000000000000"
}
]
Send the token:
# Send 0.1234567890123 XDM to address g5LvnLSdmGJW97fSNYBTu5GgZySY6v9rVv
$ token send ionrt1z08suycj85usle25z7c8fy0pvqg82759dkant22edca55z5c8q0qc3czz0g g5LvnLSdmGJW97fSNYBTu5GgZySY6v9rVv 0.1234567890123
f12de18eda9d9764152f884bb0d32fd14607b2baa86ddda29679b91c3bc7118c
- Postconditions**:
- Related use cases**: