btc_verify_message
Verify a Bitcoin message signature and recover or confirm the signing address, with automatic detection of BIP-137 compact and BIP-322 witness formats.
Instructions
Verify a Bitcoin message signature (BIP-137 or BIP-322) and recover or confirm the signer. Auto-detects BIP-137 (65-byte compact) vs BIP-322 (witness-serialized) format. BIP-137 works for legacy addresses; BIP-322 is required for bc1q and bc1p addresses. Takes the original message and signature (hex or base64). Compatible with signatures from most Bitcoin wallets.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address | No | The Bitcoin address that allegedly signed the message. Required for BIP-322 verification (bc1q for P2WPKH, bc1p for P2TR). Also used for BIP-137 to confirm the recovered address matches. | |
| message | Yes | The original plain text message that was signed. | |
| signature | Yes | The signature in hex or base64. BIP-137: 65 bytes (130 hex / 88 base64). BIP-322: variable-length witness-serialized (base64). | |
| expectedSigner | No | Optional: alias for address (backward compatibility). If address is not provided, this is used instead. |