address_decode
Convert a bech32m Chia address (xch1 or txch1) back to its puzzle hash locally without RPC. Flags cross-network prefix mismatches so you can verify the address before running on-chain queries.
Instructions
Decode a bech32m Chia address (xch1... or txch1...) back to its puzzle hash. Pure local computation, no RPC call. If the address prefix doesn't match the configured network (e.g., decoding a txch1... address on mainnet), the result includes a warning field — cross-network decoding is allowed but may indicate the address belongs to a different network. Always check the warning field before using the puzzle hash for on-chain queries.
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": {
"address": "<address>"
},
"name": "address_decode"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The bech32m Chia address to decode (xch1... or txch1...) |