{"uid":"cap_5CKn6sOj4q5sEhY3CcUkg","slug":"evm-abi-encode-decode-caf5e57d","name":"EVM ABI Encode/Decode","description":"ABI-encode a function call (selector + args) or encode/decode arbitrary ABI types — build and parse EVM calldata correctly.","url":"https://webtools402.176-109-107-191.sslip.io/crypto/abi","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"op":{"enum":["encode_call","encode","decode"],"type":"string"},"args":{"type":"array","description":"Argument values for op=encode_call/encode"},"data":{"type":"string","description":"0x calldata/abi bytes for op=decode"},"types":{"type":"array","items":{"type":"string"},"description":"ABI type list for op=encode/decode"},"signature":{"type":"string","description":"Function signature for op=encode_call, e.g. transfer(address,uint256)"}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.003","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.003/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.003","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_NfdF3csdIs494g2caTi6B","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.003","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"ABI-encodes a function call (selector + arguments) or encodes/decodes arbitrary ABI types to build and parse EVM calldata","exampleAgentPrompt":"ABI-encode a call to the transfer(address,uint256) function with recipient 0xAbCd...1234 and amount 1000000000000000000 — give me the full hex calldata including the 4-byte selector.","exampleUseCases":[{"title":"Build ERC-20 transfer calldata","prompt":"Encode a call to transfer(address,uint256) with recipient 0x1234567890abcdef1234567890abcdef12345678 and amount 5000000000000000000 — I need the full hex calldata to submit a raw transaction."},{"title":"Decode on-chain transaction input","prompt":"I have this raw transaction input data: 0xa9059cbb000000000000000000000000abcdef... — can you decode it using ABI types address and uint256 so I can see the actual arguments?"},{"title":"Encode arbitrary ABI types","prompt":"ABI-encode the values 0xDeadBeef00000000000000000000000000000001 and 42 as types address and uint256 — I need the raw ABI bytes, not a full function call."}],"resultDescription":"Returns ABI-encoded hex calldata for encode_call/encode operations (including the 4-byte function selector for encode_call), or decoded argument values and their types for decode operations — ready to use in raw EVM transactions or for parsing on-chain data.","failureModes":["Invalid function signature format causes encoding failure","Mismatched types array and args array length returns an error","Malformed or truncated hex calldata for decode operation fails parsing","Unsupported or non-standard ABI type strings cause type resolution errors","Missing required op field returns validation error"],"whenToPreferThis":"Use this endpoint when an agent needs to construct raw EVM calldata for a smart contract function call without a full web3 library, or when decoding arbitrary ABI-encoded bytes from on-chain transactions. Prefer this over manual encoding when correctness of selector computation and type packing is critical and you don't want to run local code.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:40:43.837Z","isFirstParty":false}