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
StaticemptyCreates an empty address object. Generally speaking, this should not be used by client code (internal use only).
StaticfromStaticfromStaticisPerforms address validation without throwing errors
StaticnewNamed constructor Creates an address object from a bech32-encoded string
StaticnewNamed constructor Creates an address object from a hex-encoded string
Optionalhrp: stringStaticZeroCreates 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.