{"uid":"cap_h2m2Dy8C1ruAQB0wiV6jM","slug":"api-anchor-x402-com-40d90b81","name":"Anchor X402 Transaction Decoder","description":"Structured decode of any mainnet tx (base | ethereum | solana) — $0.001 USDC","url":"https://api.anchor-x402.com/v1/decode/tx","method":"POST","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method","bodyType","body"],"properties":{"body":{"required":["chain","tx_hash"],"properties":{"chain":{"enum":["base","ethereum","solana"],"type":"string"},"tx_hash":{"type":"string","description":"EVM 0x+64hex or Solana base58 signature."}}},"type":{"type":"string","const":"http"},"method":{"enum":["POST","PUT","PATCH"],"type":"string"},"bodyType":{"enum":["json","form-data","text"],"type":"string"}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"chain":"base","status":1,"tx_hash":"0x7fb4...","gas_used":21064,"timestamp":1746820000,"value_eth":"0","value_wei":"0","to_address":"0xFE70...","block_number":24000000,"from_address":"0xFE70...","native_currency":"ETH","input_calldata_hex":"0xab08..."}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.001","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"settled","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.001/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.001","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_1U01Chjfkpfngr2FwCjcK","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.001","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes and structures any mainnet transaction from Base, Ethereum, or Solana given a transaction hash","exampleAgentPrompt":"Can you decode this Ethereum mainnet transaction for me — 0x4a3b7c1d2e9f... — and tell me what it actually did, who sent it, what was transferred, and what contract was called?","exampleUseCases":null,"resultDescription":"A structured JSON breakdown of the transaction including sender, recipient, token amounts, contract interactions, method calls, fees, block number, and other decoded fields relevant to the transaction type on the specified chain (Base, Ethereum, or Solana).","failureModes":["Invalid or malformed transaction hash returns error","Transaction hash not found on the specified chain returns not-found error","Unsupported chain specified returns validation error","Network congestion or RPC issues may cause timeouts","Payment failure (insufficient USDC balance) returns 402 status"],"whenToPreferThis":"Use this endpoint when you need a structured, human-readable decode of any mainnet transaction across Base, Ethereum, or Solana — particularly useful when you have a raw tx hash and need to understand transfers, contract calls, or method invocations without running your own RPC node. Prefer this over block explorer scraping or building custom decoders for multi-chain support.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:40:37.326Z","isFirstParty":false}