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