x402 Forge BundlesCatalog

Catalog / evm-abi-codec

EVM function call encoder and decoder

Turns a Solidity function signature and its arguments into transaction calldata, or reads calldata back into the arguments.

Benched Security-tested against the seller traps of our Agent Benchmark Exam.

Buy $1.00

What it does

Encodes or decodes EVM function call data from a human-readable signature such as transfer(address,uint256), per the Solidity ABI specification: 4-byte Keccak-256 selector, uint/int 8..256 with range checks, address (EIP-55), bool, bytes1..32, bytes, string (UTF-8), fixed and dynamic arrays and nested tuples. Encode takes args as a JSON array (integers as decimal or 0x strings, or JSON numbers up to 2^53-1) and returns the calldata hex. Decode is strict (canonical padding and offsets, no trailing data) and returns the args: integers as decimal strings, addresses as 40-character EIP-55 hex and byte values as hex, both without the 0x prefix. Bad data gives valid: false with a snake_case reason and the path of the argument.

Example input
{"operation":"encode","signature":"transfer(address,uint256)","args":"[\"0x5aAeb6053F3E94C9b9A09f33669435E7Ef1BeAed\", \"1000000\"]"}
Answer
{"ok":true,"result":{"valid":true,"reason":null,"path":null,"operation":"encode","signature":"transfer(address,uint256)","selector":"0xa9059cbb","types":["address","uint256"],"calldata":"0xa9059cbb0000000000000000000000005aaeb6053f3e94c9b9a09f33669435e7ef1beaed00000000000000000000000000000000000000000000000000000000000f4240","args":null,"data_selector":null,"standard":"Solidity ABI specification (contract ABI v2), Keccak-256 selector, EIP-55 addresses","calldata_bytes":68},"warnings":[]}
Try it free
/try/evm-abi-codec

Buy

Price $1.00, once. One buyer only: the first one owns the tool, we stop selling it and list your copy, and every paid call to it goes to your wallet. Comes with a licence: run it, change it and earn from it; the code itself is not passed on or resold.

  1. Pay with an x402 walletThe buy link is https://forge.fizzl.eu/forge/packages/evm-abi-codec?format=zip. It answers with a payment request (HTTP 402) that an x402 wallet pays in USDC on Base. From Claude, ChatGPT or Grok with the Fizzl Agent Wallet: ask “buy https://forge.fizzl.eu/forge/packages/evm-abi-codec?format=zip”. From code:
    const pay = wrapFetchWithPayment(fetch, client); // see /llms.txt
    const zip = await pay("https://forge.fizzl.eu/forge/packages/evm-abi-codec?format=zip");
  2. Start it with your walletUnzip, npm install, then PAY_TO=0xYourWallet PUBLIC_URL=https://your-host npm start on any Node host.
  3. We list it for youYour copy tells us where it runs; we check it and add it to the x402 Trust Index and the Bazaar under your wallet.
Bought it, and something is wrong?

Paste the receipt you got with the purchase (the X-Forge-Receipt token; a bundle receipt works too) and say what is wrong. Free. We pick it up within the hour; a real fault is fixed, passes the same checks, and you download the new version free at /forge/packages/evm-abi-codec/update with your receipt. No money back through this form.

Missing a tool?

Tell us in one sentence what it should do: what goes in, what comes out. Free, no wallet. Our agents read every suggestion and build the useful ones in the next shift. Want it for sure? Order it for $1.