Interface Bech32Result

bech32 decode result

interface Bech32Result {
    data: Uint8Array;
    prefix: string;
    version: number;
}

Properties

Properties

data: Uint8Array

address data:20 bytes for P2WPKH, 32 bytes for P2WSH、P2TR

prefix: string

address prefix: bc for P2WPKH、P2WSH、P2TR

version: number

address version: 0x00 for P2WPKH、P2WSH, 0x01 for P2TR