decodeTaprootAddress()
SIP Protocol API Reference v0.7.0
SIP Protocol API Reference / decodeTaprootAddress
Function: decodeTaprootAddress()
Section titled “Function: decodeTaprootAddress()”decodeTaprootAddress(
address):object
Defined in: @sip-protocol/sdk/dist/index-BYZbDjal.d.ts:5987
Decode a Taproot address
Parameters
Section titled “Parameters”address
Section titled “address”string
Bech32m encoded address (bc1p… or tb1p…)
Returns
Section titled “Returns”object
Decoded tweaked key and network
tweakedKey
Section titled “tweakedKey”tweakedKey:
Uint8Array
network
Section titled “network”network:
BitcoinNetwork
Throws
Section titled “Throws”If address is invalid