Skip to content

IAddress

Defined in: packages/iso-filecoin/src/types.ts:95

Address interface

Properties

checksum()

checksum: () => Uint8Array;

Defined in: packages/iso-filecoin/src/types.ts:102

Returns

Uint8Array


id?

optional id: bigint;

Defined in: packages/iso-filecoin/src/types.ts:101


namespace?

optional namespace: number;

Defined in: packages/iso-filecoin/src/types.ts:100


network

network: Network;

Defined in: packages/iso-filecoin/src/types.ts:98


networkPrefix

networkPrefix: NetworkPrefix;

Defined in: packages/iso-filecoin/src/types.ts:99


payload

payload: Uint8Array;

Defined in: packages/iso-filecoin/src/types.ts:97


protocol

protocol: ProtocolIndicatorCode;

Defined in: packages/iso-filecoin/src/types.ts:96


to0x()

to0x: (options: AddressRpcOptions) => Promise<string>;

Defined in: packages/iso-filecoin/src/types.ts:115

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 and f1, f2, f3 convert to id masked address and f0 depends on the underline address type

Parameters

ParameterType
optionsAddressRpcOptions

Returns

Promise<string>


toBytes()

toBytes: () => Uint8Array;

Defined in: packages/iso-filecoin/src/types.ts:105

Returns

Uint8Array


toContractDestination()

toContractDestination: () => `0x${string}`;

Defined in: packages/iso-filecoin/src/types.ts:103

Returns

`0x${string}`


toIdAddress()

toIdAddress: (options: AddressRpcOptions) => Promise<AddressId>;

Defined in: packages/iso-filecoin/src/types.ts:109

Convert to ID address

Parameters

ParameterType
optionsAddressRpcOptions

Returns

Promise<AddressId>


toString()

toString: () => string;

Defined in: packages/iso-filecoin/src/types.ts:104

Returns

string