{"uid":"cap_2ie6gK84f6ziyoPNActlA","slug":"agentresolver-abi-decode-babf1cce","name":"AgentResolver ABI Decode","description":"Verify an x402 endpoint before paying: live payTo, USDC quote, network, asset, resource binding, TLS and endpoint safety for $0.001 on Base or Solana.","url":"https://agentresolver.vercel.app/api/abi-decode","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"data":{"type":"string","pattern":"^0x(?:[0-9a-fA-F]{2})*$","maxLength":262146},"types":{"type":"array","items":{"type":"string","maxLength":512,"minLength":1},"maxItems":32,"minItems":1}}},"responseSchema":{"type":"json","example":{}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_t0tTNnHeM35wWGlurphYP","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes ABI-encoded hex data into structured values given an array of Solidity type strings","exampleAgentPrompt":"Decode this ABI-encoded hex payload `0x000000000000000000000000...` using the types `[\"address\",\"uint256\"]` so I can read the actual values.","exampleUseCases":[{"title":"Parse smart contract calldata","prompt":"I have this hex calldata from an Ethereum transaction: `0x0000000000000000000000001234...` — can you decode it using types `[\"address\",\"uint256\",\"bool\"]` so I can see what arguments were passed?"},{"title":"Decode on-chain event log data","prompt":"I captured this ABI-encoded log data `0xabcdef...` from a Transfer event and the indexed types are `[\"address\",\"address\",\"uint256\"]` — decode it for me so I can see the sender, recipient, and amount."},{"title":"Inspect contract return value","prompt":"A smart contract returned this hex blob `0x00000000000000000000000000000000000000000000000000000000000003e8` and I know it's a `[\"uint256\"]` — can you decode it to get the actual number?"}],"resultDescription":"A JSON object containing the decoded values corresponding to each Solidity type provided, mapping the raw ABI-encoded hex into their native representations such as addresses, integers, booleans, bytes, and tuples.","failureModes":["Invalid hex string (not 0x-prefixed or odd-length) returns a decode error","Mismatched types array and encoded data structure causes decode failure","Hex data exceeds 262146 character limit returns validation error","Types array exceeds 32 items or contains empty strings returns validation error","Malformed Solidity type string causes parsing error"],"whenToPreferThis":"Choose this endpoint when you need to decode raw ABI-encoded hex data from EVM-compatible smart contract calls, events, or return values and you know the Solidity type signatures. It is useful for inspecting on-chain transaction data, parsing contract return values, or decoding event logs without running a full Ethereum node or Web3 library locally.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-19T12:33:00.665Z","isFirstParty":false}