{"uid":"cap_YurtDTtzUmvcwmQgD4-0V","slug":"signalharness-abi-custom-error-decoder-29307dff","name":"SignalHarness ABI Custom Error Decoder","description":"Explore 330 pay-per-call x402 API services and 27 agent-native digital products, with Base USDC pricing, secure Polar checkout, and free discovery.","url":"https://signalharness.ai/api/agent/services/abi_custom_error_decode/invoke","method":"POST","headers":{},"bodySchema":{"type":"object","properties":{"abi_error_decode_request":{"type":"string","maxLength":65536,"minLength":2}}},"responseSchema":{"type":"json","example":{"replay":false,"result":{"warnings":["Decoded revert data does not prove transaction execution."],"service_id":"abi_custom_error_decode","evidence_scope":"caller_supplied_data","decoded_custom_error":"{\"abiItem\":{\"inputs\":[{\"name\":\"available\",\"type\":\"uint256\"}],\"name\":\"Insufficient\",\"type\":\"error\"},\"args\":[\"5\"],\"errorName\":\"Insufficient\"}"},"status":"succeeded","receipt":{"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","usage":[],"status":"succeeded","network":"eip155:8453","artifacts":[],"endedAtMs":0,"latencyMs":0,"paymentId":"example-payment","receiptId":"example-receipt","requestId":"example-request","serviceId":"abi_custom_error_decode","executionId":"example-execution","startedAtMs":0,"amountAtomic":"10000","resultSha256":"4beeae711d524731f74ce28b2ba6eb1cc6582faab0517b7748b025bebcc57737","serviceVersion":"1.0.0","settlementReference":"0x0000000000000000000000000000000000000000000000000000000000000000"},"artifacts":[],"requestId":"example-request","executionId":"example-execution"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mqg8bujU4ppLEWIqbSIah","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a custom Solidity ABI error from raw revert data into a human-readable form, given caller-supplied ABI and error payload","exampleAgentPrompt":"I got a custom error revert from my smart contract — can you decode this raw ABI error data for me: '{\"abi\": [...], \"data\": \"0x1234abcd...\"}'?","exampleUseCases":[{"title":"Debugging failed DeFi transaction","prompt":"My DeFi transaction on Base just reverted with a custom error. Here's the raw revert data and the contract ABI — can you decode what the custom error actually says so I know what went wrong?"},{"title":"Smart contract testing error analysis","prompt":"During my Hardhat test suite a contract call threw a custom error. I have the ABI and the encoded error bytes — decode it for me so I can figure out which error condition was triggered."},{"title":"On-chain error monitoring pipeline","prompt":"I'm building an alert system and I need to decode this ABI custom error from a failed Base transaction — here's the ABI error definition and the raw hex payload, please decode it and tell me what the error fields contain."}],"resultDescription":"Returns a JSON object with a decoded_custom_error string (human-readable error name and arguments), optional warnings array, service_id, evidence_scope indicating the data came from caller-supplied input, and a full payment receipt including network, asset, amounts, latency, and execution identifiers.","failureModes":["Malformed or invalid ABI definition causes decode failure","Error selector in data does not match any entry in the supplied ABI","Input string exceeds 65536 character limit","Truncated or corrupted hex revert data produces ambiguous decode","Missing required abi_error_decode_request field returns validation error","Payment failure or insufficient USDC balance prevents execution"],"whenToPreferThis":"Choose this endpoint when you need to programmatically decode Solidity custom errors from raw ABI-encoded revert data on EVM-compatible chains, especially on Base. It is purpose-built for agent workflows that encounter contract reverts and need machine-readable decoded error output with a verifiable receipt. Prefer it over generic ABI libraries when you need a paid, auditable, receipt-backed decode as part of an on-chain agent pipeline.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:59:52.287Z","isFirstParty":false}