token:transfer
Transfer ERC20 tokens from the connected account to a recipient.
Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.
Syntax
Section titled “Syntax”token:transfer <amount> <token> <to> <recipient>Arguments
Section titled “Arguments”| Name | Type | Evaluation | Description |
|---|---|---|---|
amount | number | Runtime in smart blocks | Amount in token units (wei) |
token | address | Runtime in smart blocks | Token address |
to | command | Build time | Keyword to |
recipient | address | Runtime in smart blocks | Recipient |
Examples
Section titled “Examples”load token
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdbset $recipient 0x4F2083f5fBede34C2714aFfb3105539775f7FE64
token:transfer 100e18 $token to $recipient
# Transfer using a human-readable amounttoken:transfer @token:amount(DAI 50) @token(DAI) to $recipientSee Also
Section titled “See Also”- token:transfer-from / token:disperse
@balance