p2wpkhAddress

fun p2wpkhAddress(chainHash: ByteVector32): String

Return

the BIP84 address for this key (i.e. the p2wpkh address for this key). It is a Bech32 address that will be understood only by native segwit wallets.

Parameters

chainHash

chain hash (i.e. hash of the genesis block of the chain we're on)