validate_btc_address
Verifies Bitcoin addresses (Base58Check, Bech32) and returns the address type and network to prevent sending funds to invalid or mistyped addresses.
Instructions
USE THIS to verify a Bitcoin address before sending funds or storing it — do not assume it is valid. Checks Base58Check (P2PKH/P2SH, double-SHA256 checksum) and Bech32/Bech32m SegWit (bc1…, incl. Taproot), and returns the address type and network. A bad checksum means a mistyped address.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | Yes | The Bitcoin address (legacy 1…/3… or bech32 bc1…). |