Interface IAddress

interface IAddress {
    checksum: (() => Uint8Array);
    id?: bigint;
    namespace?: number;
    network: Network;
    networkPrefix: NetworkPrefix;
    payload: Uint8Array;
    protocol: ProtocolIndicatorCode;
    to0x: ((options: AddressRpcOptions) => Promise<string>);
    toBytes: (() => Uint8Array);
    toContractDestination: (() => `0x${string}`);
    toIdAddress: ((options: AddressRpcOptions) => Promise<AddressId>);
    toString: (() => string);
}

Properties

checksum: (() => Uint8Array)
id?: bigint
namespace?: number
network: Network
networkPrefix: NetworkPrefix
payload: Uint8Array
to0x: ((options: AddressRpcOptions) => Promise<string>)

Converts any address to a 0x address, either id masked address or eth address depending on the address type. Delegated addresses convert to eth address, f1, f2, f3 convert to id masked address and f0 depends on the underline address type

toBytes: (() => Uint8Array)
toContractDestination: (() => `0x${string}`)
toIdAddress: ((options: AddressRpcOptions) => Promise<AddressId>)

Convert to ID address

toString: (() => string)