Skip to main content
Build and encode an ERC-20 token transfer transaction.

Decode Calldata

Verify the encoded calldata by decoding it back:

Function Selector

The first 4 bytes are the function selector:

Full Transaction with Signing

This is a fully executable example. View the complete source with test assertions at examples/contracts/erc20-transfer.ts.