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