{"uid":"cap_cpNyfyTKXf3sKiCM7GzqR","slug":"saylor-innovations-bitcoin-address-validator-d14951ab","name":"Saylor Innovations Bitcoin Address Validator","description":"Bitcoin address validator - checks base58check and bech32/bech32m checksums, returns network, address type (P2PKH, P2SH, P2WPKH, taproot) and encoding","url":"https://saylorinnovations.com/api/tools/btc-address?utm_source=zero.xyz","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"],"type":"string"},"queryParams":{"type":"object","required":["address"],"properties":{"address":{"type":"string","description":"Bitcoin address to validate"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string","const":"json"},"example":{"type":"object","required":["address","valid"],"properties":{"type":{"type":["string","null"],"description":"Type or kind"},"valid":{"type":"boolean","description":"True when the input passed validation"},"reason":{"type":["string","null"]},"address":{"type":"string","description":"Account or contract address"},"network":{"type":["string","null"],"description":"Network name"},"encoding":{"type":["string","null"],"description":"Encoding used"},"checked_at":{"type":["string","null"],"description":"Time the check was run (UTC)"},"program_hex":{"type":["string","null"],"description":"Program hex"},"witness_version":{"type":["number","null"],"description":"Witness version"}}}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","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.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_3UiyL28d-7rO0FTtAe69t","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":"Validates a Bitcoin address by checking base58check or bech32/bech32m checksums and returns the network, address type, and encoding","exampleAgentPrompt":"Can you check whether bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq is a valid Bitcoin address and tell me what type it is and which network it belongs to?","exampleUseCases":[{"title":"Pre-flight withdrawal address check","prompt":"Before I process this Bitcoin withdrawal, verify that 1A1zP1eP5QGefi2DMPTfTL5SLmv7Divf is a valid BTC address and let me know if it's mainnet or testnet and what address type it is."},{"title":"Taproot address format verification","prompt":"I just generated a new taproot address — bc1p5d7rjq7g6rdk2yhzks9smlaqtedr4dekq08ge8ztwac72sfr9rusxg3297 — can you confirm it passes the bech32m checksum and is correctly recognized as a taproot (P2TR) address?"},{"title":"Detecting invalid or mistyped addresses","prompt":"A customer submitted this Bitcoin address for a refund: 1AGNa15ZQXAZUgFiqJ3i7Z2DPU2J6hW62i — can you run it through validation and tell me if there's any problem with the checksum or format?"}],"resultDescription":"Returns a JSON object with: address (the input), valid (boolean), network (e.g. mainnet/testnet), type (P2PKH, P2SH, P2WPKH, P2TR, etc.), encoding (base58check or bech32/bech32m), witness_version (for SegWit addresses), program_hex (the decoded witness program), checked_at (UTC timestamp), and reason (error description if invalid).","failureModes":["Missing required 'address' query parameter returns an error response","Completely garbled non-address string returns valid=false with a reason explaining the failure","Testnet addresses may be identified as testnet rather than invalid — callers should check network field","Address with valid checksum but unsupported type may return unknown type field","Network timeouts or service unavailability return HTTP 5xx errors","Payment required (HTTP 402) if x402 payment is not provided or fails"],"whenToPreferThis":"Use this endpoint when you need a lightweight, pay-per-call Bitcoin address validation that covers all modern address types (legacy P2PKH, P2SH, native SegWit P2WPKH, and taproot P2TR) and returns structured metadata including network and encoding — particularly useful in automated pipelines (e.g. wallets, exchanges, payment processors) that need to gate on address correctness before executing a transaction.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-17T06:49:32.470Z","isFirstParty":false,"canonicalSlug":"saylor-innovations-bitcoin-address-validator-d14951ab"}