loading prices...
prices by coingecko
onchain.search tools/local · 0 uploads/links/about

home / ethereum / erc20-transfer-calldata-builderlocal

ERC-20 Transfer and Approve Calldata Builder

Build the calldata for an ERC-20 transfer, approve or transferFrom, with the amount converted from decimals.

erc20-transfer-calldata-builderready · runs in this browser

Runs locally in your browser. Nothing you type is sent anywhere.

ethereum tools · free · runs in your browser · no sign-up · no wallet

01 // about this tool

Sending a token is a call to the token contract, not a payment to the recipient. The data field holds a 4-byte function selector followed by the address and the amount in the token's smallest units. This builds that data so you can check what a wallet or script is about to send.

02 // how to use it

  1. Pick the function.
  2. Enter the address and the amount in normal token units, and the token's decimals.
  3. Press Run and compare the calldata with what your wallet shows.

03 // faq

Where do I send this?

To the token contract address, with a value of 0. The recipient is inside the data.

Why do decimals matter?

USDC and USDT use 6 decimals on Ethereum, most tokens use 18. The wrong figure moves a million times too much or too little.

Is an unlimited approval safe?

It lets the spender move all of that token you hold, now and later. Approve what you need, and revoke old approvals.

04 // related tools

all 43 ethereum tools →