{"uid":"cap_ME_b7D1Xf0j5Aa0XKmgq1","slug":"chainquery-bitcoin-validateaddress-rpc-a0933576","name":"chainquery Bitcoin validateaddress RPC","description":"chainquery Bitcoin RPC: pay-per-call Bitcoin Core over x402, no API key. Validate a Bitcoin address and return its type and scriptPubKey. Bitcoin Core validateaddress.","url":"https://x402.chainquery.com/v1/rpc/validateaddress","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":"validateaddress result"}}}}}}},"responseSchema":null,"example":{"request":{"input":{"type":"http","method":"GET","queryParams":{"params":"[\"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq\"]"}}},"response":{"result":{"address":"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq","isvalid":true,"isscript":false,"iswitness":true,"scriptPubKey":"0014e8df018c7e326cc253faac7e46cdc51e68542c42","witness_program":"e8df018c7e326cc253faac7e46cdc51e68542c42","witness_version":0}}},"exampleRequest":{"params":"[\"bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq\"]"},"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_4LIkFL73NFOVyN8dEvgph","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":"Validates a Bitcoin address and returns its type, validity, and scriptPubKey via Bitcoin Core's validateaddress RPC, pay-per-call over x402","exampleAgentPrompt":"Is bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq a valid Bitcoin address, and what type is it — can you validate it against Bitcoin Core and show me the scriptPubKey?","exampleUseCases":[{"title":"Verify recipient address before payment","prompt":"Before I send Bitcoin to this address, can you validate that it's actually a real Bitcoin address and tell me what type it is? I want to make sure I'm sending to the right format."},{"title":"Check if address supports segwit","prompt":"I have a bunch of addresses I'm considering for cold storage. Can you check each one and tell me which ones are segwit-compatible so I can pick the most efficient for my transaction fees?"},{"title":"Extract scriptPubKey for transaction","prompt":"I'm building a raw Bitcoin transaction and I need the scriptPubKey for this address — can you validate the address and pull out that hex value for me?"}],"resultDescription":"Returns the Bitcoin Core validateaddress result object including isvalid (boolean), address, scriptPubKey (hex), address type (e.g. witness_v0_keyhash, p2pkh, p2sh), and related metadata fields.","failureModes":["Invalid or malformed address string returns isvalid:false rather than an error","Missing required params query parameter returns a 400 or RPC parse error","Payment not provided or insufficient triggers x402 payment-required response","Network timeout or Bitcoin Core node unavailability returns 5xx error","Non-mainnet addresses may return isvalid:false if node is on mainnet"],"whenToPreferThis":"Use this endpoint when you need authoritative Bitcoin Core address validation without setting up a node or managing API keys — ideal for agents verifying recipient addresses before constructing transactions, checking address type (legacy/P2SH/bech32), or extracting scriptPubKey for transaction building. Pay $0.005 USDC per call via x402 with no prior key registration.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T18:44:12.700Z","isFirstParty":false}