Constructors
constructor
- new BitcoinAddress(keypair, network?): BitcoinAddress
Parameters
- keypair: ECPairInterface
- network: Network = networks.bitcoin
Accessors
p2wpkhAddress
- get p2wpkhAddress(): string
Returns string
privateKey
- get privateKey(): undefined | Buffer
Returns undefined | Buffer
publicKey
- get publicKey(): Buffer
Returns Buffer
taprootAddress
- get taprootAddress(): string
Returns string
Methods
[toStringTag]
- [toStringTag](): string
Returns string
toString
- toString(): string
Returns string
Static
fromPrivateKey
- fromPrivateKey(privateKey, network?): BitcoinAddress
Parameters
- privateKey: Buffer
- network: Network = networks.bitcoin
Static
fromPublicKey
- fromPublicKey(publicKey, network?): BitcoinAddress
Parameters
- publicKey: Buffer
- network: Network = networks.bitcoin
Static
fromWif
- fromWif(wif, network?): BitcoinAddress
Parameters
- wif: string
- network: Network = networks.bitcoin
Static
isValidTaprootAddress
- isValidTaprootAddress(_addr, network?): boolean
Returns boolean
Bitcoin Address
Description
This class is used to create a Bitcoin address.
Cathegory
Bitcoin