Pay to Public Key Hash (P2PKH): 0b00000000
0 (reserved)0000 (P2PKH)000 (20 bytes)Pay to Public Key Hash (P2PKH) with token support: 0b00010000
0 (reserved)0010 (P2PKH + Tokens)000 (20 bytes)20-byte Pay to Script Hash (P2SH20): 0b00001000
0 (reserved)0001 (P2SH)000 (20 bytes)20-byte Pay to Script Hash (P2SH20) with token support: 0b00011000
0 (reserved)0011 (P2SH + Tokens)000 (20 bytes)32-byte Pay to Script Hash (P2SH20): 0b00001000
0 (reserved)0001 (P2SH)011 (32 bytes)32-byte Pay to Script Hash (P2SH32) with token support: 0b00011011
0 (reserved)0011 (P2SH + Tokens)011 (32 bytes)Generated using TypeDoc
The CashAddress specification standardizes the format of the version byte:
0Two Address Type values are currently standardized:
0b0000): P2PKH0b0001): P2SHAnd two are proposed by
CHIP-2022-02-CashTokens:0b0010): P2PKH + Token Support0b0011): P2SH + Token SupportThe CashAddress specification standardizes expected payload length using CashAddressLengthBits. Currently, two length bit values are in use by standard CashAddress types:
0(0b000): 20 bytes (in use byp2pkhandp2sh20)3(0b011): 32 bytes (in use byp2sh32)