Pay to Public Key (P2PK). This address type is uncommon, and primarily occurs in early blocks because the original satoshi implementation mined rewards to P2PK addresses.
There are no standardized address formats for representing a P2PK address.
Instead, most applications use the
Pay to Public Key Hash (P2PKH). The most common address type. P2PKH addresses lock funds using a single private key.
20-byte Pay to Script Hash (P2SH20). An address type that locks funds to the 20-byte hash of a script provided in the spending transaction. See BIPs 13 and 16 for details.
32-byte Pay to Script Hash (P2SH32). An address type that locks funds to the 32-byte hash of a script provided in the spending transaction.
Generated using TypeDoc
The most common address types used on Bitcoin Cash and similar networks. Each address type represents a commonly used locking bytecode pattern.
Addresses are strings that encode information about the network and
lockingBytecodeto which a transaction output can pay.
Several address formats exist –
Base58Addresswas the format used by the original satoshi client, and is still in use on several active chains (see encodeBase58Address). On Bitcoin Cash, the
CashAddressstandard is most common (See encodeCashAddress).