{"uid":"cap_gkigGksbnjsLV5u_qVFB6","slug":"chainquery-getrawtransaction-44cb6d71","name":"chainquery getrawtransaction","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. A raw transaction by txid from chainquery's independent full node, as hex or decoded JSON. Bitcoin Core getrawtransaction.","url":"https://x402.chainquery.com/v1/rpc/getrawtransaction","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"},"queryParams":{"type":"object","properties":{"params":{"type":"string","description":"optional: JSON-encoded array of positional RPC params"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"result":{"description":"getrawtransaction result"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_YEsU_XuxzOLtDuvQ_7xtS","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":"Fetches a raw Bitcoin transaction by txid from chainquery's independent full node, returning hex or decoded JSON via Bitcoin Core getrawtransaction RPC","exampleAgentPrompt":"Can you fetch the full decoded details of Bitcoin transaction 4a5e1e4baab89f3a32518a88c31bc87f618f76673e2cc77ab2127b7afdeda33b from chainquery's Bitcoin node — I need all the inputs, outputs, and confirmation count?","exampleUseCases":[{"title":"Audit wallet transaction history","prompt":"I need you to look up the last 5 Bitcoin transactions I sent from my wallet and decode each one so I can verify the inputs, outputs, and fees — can you fetch them all from chainquery without needing an API key?"},{"title":"Verify blockchain payment confirmation","prompt":"A customer claims they sent me Bitcoin but I don't see it yet — can you check transaction abc123xyz on the blockchain and tell me how many confirmations it has and what the actual outputs are?"},{"title":"Analyze large transaction structure","prompt":"I'm investigating a suspicious Bitcoin transaction for compliance purposes — can you pull the full decoded details including all inputs, scriptPubKey data, and outputs so I can trace the money flow?"}],"resultDescription":"Returns the Bitcoin Core getrawtransaction result: either a hex-encoded raw transaction string (verbosity 0) or a decoded JSON object containing txid, hash, version, size, vin (inputs with scriptSig, txid, vout), vout (outputs with value, scriptPubKey addresses), blockhash, confirmations, time, and blocktime.","failureModes":["Transaction not found (txid not in mempool or blockchain) — returns null result with RPC error","Invalid or malformed txid format — RPC error response","Node not fully synced — transaction may be missing for recent blocks","Payment of $0.01 USDC not completed or rejected — HTTP 402 response before RPC is reached","Malformed params JSON array — query param parsing error"],"whenToPreferThis":"Use this endpoint when you need raw or decoded Bitcoin transaction data directly from an independent full node without registering for an API key. Prefer over Blockstream, Mempool.space, or similar REST APIs when you want Bitcoin Core native RPC output format, pay-per-call micropayment access via x402, or a node independent from Blockstream/Coinbase infrastructure.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T12:49:29.127Z","isFirstParty":false}