generate_keypair
Generate a Bitcoin address and private key pair for secure transactions using your local node's wallet. Choose address types like legacy, bech32, or taproot while controlling private key visibility for security.
Instructions
Generate a new Bitcoin address via the connected node's wallet. Requires a local node with a wallet loaded — not available when using the hosted Satoshi API.
SECURITY: Private keys are redacted by default because AI provider tool responses may be logged. Set include_private_key=True only if you understand the risk — the key will appear in your conversation history and should be considered potentially compromised for high-value use.
Args: address_type: Address type — "legacy" (P2PKH), "p2sh-segwit" (P2SH-P2WPKH), "bech32" (P2WPKH, default), or "bech32m" (P2TR taproot) include_private_key: If True, include the WIF private key in the response. Defaults to False for security.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address_type | No | bech32 | |
| include_private_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |