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.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pubkey | Yes | ||
| network | No | ||
| address_type | No | native_segwit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |