Transfers

The transfer node sends native token from your contract to another address. Unlike data-only nodes, transfer has triangle connectors because it performs an action that changes the blockchain.

Fields

  • To: the wallet address that receives the native token
  • Amount: how much native token to send

Both fields accept typed values or wired connections from other nodes. In most real contracts, at least one field is wired dynamically rather than hardcoded.

Try It Yourself

Task 1 of 2 Fill in a Transfer

Set the recipient and amount for a transfer.

1 Set the recipient
2 Set the amount
3 Done!
Type owner in the To field.
Press enter or space to select a node. You can then use the arrow keys to move the node around. Press delete to remove it and escape to cancel.
Press enter or space to select an edge. You can then press delete to remove it or escape to cancel.

What You Learned

  • transfer sends native token from the contract to an address
  • It has triangle connectors because it performs an on-chain action
  • To and Amount can be typed directly or wired from other nodes like msgValue