Use toBech32 instead.
Returns the human-readable-part of the bech32 addresses.
Returns the underlying public key.
Use toHex instead.
Use isSmartContract instead.
Returns whether the address is empty.
Returns whether the address is a smart contract address.
Use getPublicKey instead.
Returns the bech32 representation of the address
Returns the hex representation of the address (pubkey)
Converts the address to a pretty, plain JavaScript object.
Returns the bech32 representation of the address
Static
emptyCreates an empty address object. Generally speaking, this should not be used by client code (internal use only).
Static
fromStatic
fromStatic
isPerforms address validation without throwing errors
Static
newNamed constructor Creates an address object from a bech32-encoded string
Static
newNamed constructor Creates an address object from a hex-encoded string
Optional
hrp: stringStatic
ZeroCreates the Zero address (the one that should be used when deploying smart contracts). Generally speaking, this should not be used by client code (internal use only).
An Address, as an immutable object.