{"uid":"cap_h36hVkWCn3sfS_yY-I4HN","slug":"fastx402-lab-bech32-decoder-114c7823","name":"FastX402 Lab Bech32 Decoder","description":"216 pay-per-call tools for AI agents, from $0.001 per request in USDC on Base or Solana with x402. No account, no API key.","url":"https://fastx402.tools/bech32-decode?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":"Bech32 or bech32m encoded address"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object","properties":{"hrp":{"type":"string"},"address":{"type":"string"},"program":{"type":"string"},"version":{"type":"integer"},"encoding":{"type":"string"}}}}}}},"responseSchema":{"type":"json","example":{"hrp":"bc","address":"bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4","program":"751e76e8199196d454941c45d1b3a323f1433bd6","version":0,"encoding":"bech32"}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","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.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_mYK3pgUbQimx2Fz3cXIx-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Decodes a bech32 or bech32m encoded address and returns its human-readable part, witness version, and program hex.","exampleAgentPrompt":"Can you decode this Bitcoin SegWit address for me — bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 — and tell me the human-readable part, witness version, and program hex?","exampleUseCases":[{"title":"Inspect a Bitcoin SegWit address","prompt":"I have a Bitcoin address starting with bc1 — bc1qar0srrr7xfkvy5l643lydnw9re59gtzzwf5mdq — can you decode it and show me the witness version and the raw program bytes?"},{"title":"Parse a Cosmos chain wallet address","prompt":"Can you decode this Cosmos address cosmos1yw7dmzry2lnrwrrdxzmcstxhq4j2azdlhzjvhf and tell me the human-readable prefix and the underlying program hex?"},{"title":"Validate a Lightning Network invoice prefix","prompt":"I want to understand what's inside this bech32m Lightning-related address lnbc1pvjluezpp5qqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqqqsyqcyq5rqwzqfqypqdpl — what's the HRP, witness version, and program?"}],"resultDescription":"Returns a JSON object containing the original address, the human-readable part (hrp), the witness version integer, the program as a hex string, and the encoding type (bech32 or bech32m).","failureModes":["Invalid bech32 checksum causes decoding failure","Non-bech32 address format (e.g. Base58 legacy Bitcoin address) is rejected","Malformed or truncated address string returns an error","Unsupported encoding variant not recognized as bech32 or bech32m"],"whenToPreferThis":"Use this endpoint when you need to programmatically decode a bech32 or bech32m address — such as Bitcoin SegWit (bc1/tb1), Lightning Network, or Cosmos ecosystem addresses — and extract the raw components like HRP, witness version, and program hex. Prefer this over a generic regex or local library when you need a reliable, pay-per-call API with no setup overhead.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-11-21T00:35:46.864Z","isFirstParty":false,"canonicalSlug":"fastx402-lab-bech32-decoder-114c7823"}