crypto_bech32
Bech32 / bech32m decoder, validator and prefix converter — Decode and validate any bech32 or bech32m string (BIP173/BIP350): Bitcoin and Litecoin segwit addresses (witness version, program, P2WPKH/P2WSH/P2TR, v0-vs-v1 checksum rules), Cosmos SDK accounts (cosmos, osmo, celestia, inj, sei, noble, dydx and more, with the 20-byte payload in 0x form), Nostr npub/note (warns on nsec), LNURL (decoded URL) and Lightning invoices. Optional to= re-encodes the same payload under other prefixes (comma list, up to 10), e.g. cosmos1... to osmo and inj; a 0x hex input with to= encodes it (EVM address to inj1...). Returns hrp, variant, known chain, payload hex and warnings. Offline; no network calls. Returns 422 with the exact problem (bad character position, mixed case, checksum mismatch) for invalid strings. Price: $0.001 USDC (Base, via x402).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"input": "<input>"
},
"name": "crypto_bech32"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| input | Yes | bc1qw508d6qejxtdg4y5r3zarvary0c5xw7kv8f3t4 |