Constructorsconstructor new Address ( value : string | Uint8Array < ArrayBufferLike > | Address , hrp ?: string , ) : Address Parameters value : string | Uint8Array < ArrayBufferLike > | Address Optional
hrp : string Methodsbech32 bech32 () : string Returns string equals equals ( other : null | Address ) : boolean Returns boolean get Hrp getHrp () : string Returns string get Public Key getPublicKey () : Buffer Returns Buffer hex hex () : string Returns string is Contract Address isContractAddress () : boolean Returns boolean is Empty isEmpty () : boolean Returns boolean is Smart Contract isSmartContract () : boolean Returns boolean pubkey pubkey () : Buffer Returns Buffer to Bech32 toBech32 () : string Returns string to Hex toHex () : string Returns string toJSON toJSON () : object Returns object to String toString () : string Returns string Static
from Buffer fromBuffer ( buffer : Buffer , hrp ?: string ) : Address Parameters buffer : Buffer Optional
hrp : string Static
from Hex fromHex ( value : string , hrp ?: string ) : Address Parameters value : string Optional
hrp : string Static
from String fromString ( value : string , hrp ?: string ) : Address Parameters value : string Optional
hrp : string Static
is Valid isValid ( value : string ) : boolean Returns boolean Static
new From Bech32 newFromBech32 ( value : string ) : Address Static
new From Hex newFromHex ( value : string , hrp ?: string ) : Address Parameters value : string Optional
hrp : string
An Address, as an immutable object.