BlockchainKeyEncode[key,form]
encodes a private or public key in the specified blockchain format.


BlockchainKeyEncode
BlockchainKeyEncode[key,form]
encodes a private or public key in the specified blockchain format.
Details and Options

- BlockchainKeyEncode has the option BlockchainBase, with default setting $BlockchainBase.
- In BlockchainKeyEncode[key,form], key can be a PrivateKey or a PublicKey object.
- Possible formats specified by form include:
-
"Address" Bitcoin P2PKH address or Ethereum address "WIF" Wallet Import Format - Formats supported by "Address" include Bitcoin P2PKH address, Ethereum address, ARK address, bloxberg address and Tezos address.
Examples
open all close allBasic Examples (11)
Encode a private key as a WIF-compressed format to be used in a transaction on the Bitcoin blockchain:
Encode a public key as a Pay-to-Public-Key-Hash Bitcoin address:
Encode a public key as an Ethereum address:
Encode a public key as an ARK address:
Encode a public key as a bloxberg address:
Encode an ed25519 public key as a Tezos address:
Encode a secp256k1 public key as a Tezos address:
Encode a prime256v1 public key as a Tezos address:
Encode an ed25519 public key as a Cardano enterprise address:
This is equivalent to explicitly specifying the key in the association:
Encode two ed25519 public keys (payment and stake keys) as a Cardano payment address:
Scope (5)
Options (10)
BlockchainBase (10)
Bitcoin (2)
Possible Issues (2)
Encoding a public key as WIF format will return an error:

When encoding a hexadecimal string as a Tezos address, BlockchainKeyEncode will assume it is an ed25519 public key:

Related Workflows
- Create a Pay-to-Public-Key-Hash Bitcoin Address ▪
- Create an Ethereum Address ▪
- Create an ARK Address
History
Text
Wolfram Research (2019), BlockchainKeyEncode, Wolfram Language function, https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html.
CMS
Wolfram Language. 2019. "BlockchainKeyEncode." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html.
APA
Wolfram Language. (2019). BlockchainKeyEncode. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html
BibTeX
@misc{reference.wolfram_2025_blockchainkeyencode, author="Wolfram Research", title="{BlockchainKeyEncode}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html}", note=[Accessed: 13-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_blockchainkeyencode, organization={Wolfram Research}, title={BlockchainKeyEncode}, year={2019}, url={https://reference.wolfram.com/language/ref/BlockchainKeyEncode.html}, note=[Accessed: 13-August-2025]}