Skip to content

token:transfer-from

Transfer ERC20 tokens from one account to another, consuming the sender allowance.

Supports runtime fields inside smart blocks. Use explicit @helper! expressions or captured outputs; other fields are evaluated at build time.

token:transfer-from <amount> <token> <from> <owner> <to> <recipient>
NameTypeEvaluationDescription
amountnumberRuntime in smart blocksAmount in token units (wei)
tokenaddressRuntime in smart blocksToken address
fromcommandBuild timeKeyword from
owneraddressRuntime in smart blocksAccount to debit
tocommandBuild timeKeyword to
recipientaddressRuntime in smart blocksRecipient
load token
set $token 0x9C58BAcC331c9aa871AFD802DB6379a98e80CEdb
set $from 0x4F2083f5fBede34C2714aFfb3105539775f7FE64
# Pull previously approved tokens into the connected account
token:transfer-from 100e18 $token from $from to @me