generate_keypair
Generate a new Bitcoin address with your local node's wallet. Choose address types and manage private key visibility for secure transactions.
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.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "generate_keypair"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| address_type | No | bech32 | |
| include_private_key | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |