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