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