{"uid":"cap_H3kCMpk5glYJLHjnncWLH","slug":"chainquery-createrawtransaction-0debbbfc","name":"chainquery createrawtransaction","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Build an unsigned raw transaction hex from inputs and outputs. Bitcoin Core createrawtransaction.","url":"https://x402.chainquery.com/v1/rpc/createrawtransaction","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":"createrawtransaction result"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_loiMZuz2HBFcAdviYWznw","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":"Builds an unsigned raw Bitcoin transaction hex from specified inputs and outputs via Bitcoin Core's createrawtransaction RPC, pay-per-call over x402.","exampleAgentPrompt":"Build me an unsigned raw Bitcoin transaction using input txid a1b2c3...d4e5 vout 0 and output bc1qxyz...abc with 0.001 BTC — I need the raw hex to sign manually.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a `result` field containing the unsigned raw transaction as a hex-encoded string, ready to be signed with signrawtransactionwithkey or used in a PSBT workflow.","failureModes":["Invalid or malformed UTXO input (txid format wrong) — RPC error response","Invalid Bitcoin address in outputs — RPC error with address validation message","Negative or zero amount in outputs — RPC error","Malformed JSON in params query parameter — HTTP 400 or RPC parse error","Payment not received / x402 payment required — HTTP 402 response","Insufficient USDC for x402 payment — HTTP 402","Node unavailable or RPC timeout — HTTP 503 or timeout error"],"whenToPreferThis":"Use this endpoint when you need to programmatically construct an unsigned raw Bitcoin transaction from known UTXOs and target addresses without running your own Bitcoin Core node. Ideal for wallet builders, signing workflows, PSBT pipelines, or any automation that needs a raw transaction hex prior to signing. Prefer over local node setup when you want pay-per-call access with no API key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T18:55:33.075Z","isFirstParty":false}