- Preparing search index...
- The search index is not available
Stacks.js
Function getAddressFromPublicKey
- getAddressFromPublicKey(publicKey: string | Uint8Array, transactionVersion?: TransactionVersion): string
-
Parameters
-
publicKey: string | Uint8Array
-
transactionVersion: TransactionVersion = TransactionVersion.Mainnet
Returns string
Creates a P2PKH address string from the given public key and tx version.