get_address_from_pubkey
Convert a hex public key into a Bitcoin address offline, selecting legacy, segwit, or taproot formats with optional network override.
Instructions
Convert a hex public key to an address. Works offline.
Args: pubkey: Hex-encoded public key, compressed or uncompressed. address_type: legacy, nested_segwit, native_segwit, taproot, or "all". network: Override the server's network for this call.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"pubkey": "<pubkey>"
},
"name": "get_address_from_pubkey"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pubkey | Yes | ||
| network | No | ||
| address_type | No | native_segwit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |