addressFromPublicKey
addressFromPublicKey(
publicKey,network,type?):string
Defined in: wallet-btc/src/address.ts:40
Address of a compressed public key: p2wpkh (bc1q…) or p2tr key-path (bc1p…).
Parameters
Section titled “Parameters”publicKey
Section titled “publicKey”Uint8Array
network
Section titled “network”BTC_NETWORK
BtcAddressType = 'p2wpkh'
Returns
Section titled “Returns”string