{"uid":"cap_p40uOGcMtqBjNToFb71nc","slug":"chainquery-bitcoin-decodescript-rpc-20bd2d1d","name":"chainquery Bitcoin decodescript RPC","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Decode a hex script into its assembly, type, and addresses. Bitcoin Core decodescript.","url":"https://x402.chainquery.com/v1/rpc/decodescript","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":"decodescript result"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"params":"[\"76a914abc123def456abc123def456abc123def456abc12388ac\"]"}},"output":{"type":"object"}},"response":{"result":{"asm":"OP_DUP OP_HASH160 abc123def456abc123def456abc123def456abc1 [error]","desc":"raw(76a914abc123def456abc123def456abc123def456abc12388ac)#v4lmnxla","type":"nonstandard"}}},"exampleRequest":{"params":"[\"76a914abc123def456abc123def456abc123def456abc12388ac\"]"},"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_aMrJVwSYF7pUm79BgnpHp","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":"Decodes a Bitcoin hex-encoded script into its assembly representation, type classification, and associated addresses","exampleAgentPrompt":"Can you decode this Bitcoin script hex for me and tell me its type, assembly, and any addresses it encodes: 76a914abc123def456abc123def456abc123def456abc12388ac?","exampleUseCases":null,"resultDescription":"Returns a Bitcoin Core decodescript result object containing the ASM disassembly of the script, the script type (e.g. pubkeyhash, scripthash, multisig, nulldata), any Bitcoin addresses embedded in the script, the number of required signatures, and the equivalent P2SH address if applicable.","failureModes":["Invalid hex string returns an RPC error from Bitcoin Core","Malformed params JSON causes a 400 bad request","Payment not included or insufficient triggers an HTTP 402 response requiring x402 payment","Empty or missing script param returns a Bitcoin Core parameter error"],"whenToPreferThis":"Use this endpoint when you need to decode and understand a raw Bitcoin script hex string without managing your own Bitcoin Core node or obtaining an API key. Ideal for agents that need on-demand, pay-per-call script analysis as part of transaction inspection workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:41:17.303Z","isFirstParty":false}