Skip to content

erc20Abi

const erc20Abi: readonly [{ inputs: readonly [{ name: "to"; type: "address"; }, { name: "amount"; type: "uint256"; }]; name: "transfer"; outputs: readonly [{ name: ""; type: "bool"; }]; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ name: "account"; type: "address"; }]; name: "balanceOf"; outputs: readonly [{ name: ""; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly []; name: "decimals"; outputs: readonly [{ name: ""; type: "uint8"; }]; stateMutability: "view"; type: "function"; }]

Defined in: sdks/js/agent-sdk/src/util/TransactionUtil.ts:18

Minimal ERC-20 ABI containing transfer, balanceOf, and decimals functions. Can be used with viem’s encodeFunctionData for custom ERC-20 interactions.

https://eips.ethereum.org/EIPS/eip-20#methods