{"uid":"cap_sCxTyOux-hzsAo9RSAITp","slug":"blockscout-transaction-raw-trace-2981113c","name":"Blockscout Transaction Raw Trace","description":"Explore crypto activities with Blockscout's multichain search. Find transactions, addresses, tokens, and dapps across top blockchain networks — your go-to explorer for cross-chain blockchain data","url":"https://api.blockscout.com/%7Bchain_id%7D/api/v2/transactions/%7Btransaction_hash_param%7D/raw-trace","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"pathParams":{"type":"object","properties":{"chain_id":{"type":"string"},"transaction_hash_param":{"type":"string"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":[{"type":"string","action":{"to":"string","gas":"string","from":"string","init":"string","input":"string","value":"string","callType":"string"},"result":{"output":"string","gasUsed":"string"},"subtraces":0,"traceAddress":[0],"transactionHash":"string"}]},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_MJfSDUI8Vi3xb4IkxatlC","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Retrieves the raw execution trace of a specific transaction on a given blockchain network via Blockscout's multichain explorer API","exampleAgentPrompt":"Can you pull the raw execution trace for transaction 0xabc123...def on Ethereum (chain ID 1) using Blockscout so I can see all the internal calls and gas usage?","exampleUseCases":[{"title":"Debug a failed DeFi transaction","prompt":"I have this failed Uniswap transaction on Ethereum — hash is 0x4f3a...9b2c — can you fetch its raw trace from Blockscout so I can see exactly where it reverted and what internal calls were made?"},{"title":"Audit smart contract internal calls","prompt":"Fetch the raw trace for transaction 0x7d1e...4c88 on Polygon (chain ID 137) from Blockscout — I need to see every sub-call the contract made and how much gas each one consumed."},{"title":"Verify cross-chain token bridge execution","prompt":"Can you get me the raw execution trace for this Arbitrum transaction (chain ID 42161) with hash 0xc3f2...8a01 from Blockscout? I want to verify the sequence of internal calls the bridge contract made."}],"resultDescription":"Returns an array of raw trace objects for the transaction, each containing: trace type, action details (from/to addresses, gas limit, input data, value transferred, call type or init code), result (output data, gas used), number of subtraces, trace address path, and the originating transaction hash.","failureModes":["Invalid or unknown transaction hash returns empty array or 404","Unsupported chain_id returns an error or empty response","Transaction not yet indexed by Blockscout returns 404 or empty","Network latency or Blockscout node unavailability causes timeout","Transactions on chains that don't support trace APIs may return empty traces"],"whenToPreferThis":"Use this endpoint when you need the lowest-level raw EVM execution trace for a specific transaction — especially for debugging smart contract failures, auditing internal call sequences, or analyzing gas consumption at the sub-call level. Prefer this over higher-level transaction detail endpoints when you need the full opcode-level trace structure rather than just decoded logs or token transfers.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-12T00:50:14.575Z","isFirstParty":false}