token:transfer-from
Transfer ERC20 tokens from one account to another, consuming the sender allowance.
Syntax
Section titled “Syntax”token:transfer-from <amount> <token> <from> <owner> <to> <recipient>Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
amount | number | Amount in token units (wei) |
token | address | Token address |
from | command | Keyword from |
owner | address | Account to debit |
to | command | Keyword to |
recipient | address | Recipient |
Examples
Section titled “Examples”load token
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdbset $from 0x4F2083f5fBede34C2714aFfb3105539775f7FE64
# Pull previously approved tokens into the connected accounttoken:transfer-from 100e18 $token from $from to @me