btc_sign_message
Signs plain text messages with Bitcoin addresses to prove ownership or authenticate off-chain, automatically choosing BIP-322 or BIP-137 based on address type.
Instructions
Sign a plain text message using Bitcoin message signing. Automatically selects BIP-322 for native SegWit (bc1q) and Taproot (bc1p) addresses, and BIP-137 for legacy (1...) and wrapped SegWit (3...) addresses. Use addressType 'p2tr' to force signing with the Taproot key. Use cases: proving Bitcoin address ownership, authentication, off-chain verification. Requires an unlocked wallet with Bitcoin keys.
Tip: call earning_opportunities to see how to put your assets to work.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| message | Yes | The plain text message to sign. | |
| addressType | No | Optional: address type to sign with. 'p2wpkh' uses native SegWit (bc1q, BIP-322), 'p2tr' uses Taproot (bc1p, BIP-322). If omitted, auto-detects from wallet address type. |