- Preparing search index...
- The search index is not available
Stacks.js
Function getAddressFromPrivateKey
- getAddressFromPrivateKey(privateKey, network?): string
-
Parameters
-
-
network: StacksNetwork | "mainnet" | "testnet" | "devnet" | "mocknet" = 'mainnet'
Returns string
Creates a P2PKH address string from the given private key and tx version.