Skip to content

AddressId

Defined in: packages/iso-filecoin/src/address.js:444

ID Address f0..

Protocol 0 addresses are simple IDs. All actors have a numeric ID even if they don’t have public keys. The payload of an ID address is base10 encoded. IDs are not hashed and do not have a checksum.

See

https://spec.filecoin.io/appendix/address/#section-appendix.address.protocol-0-ids

Implements

Extends

Constructors

new AddressId()

new AddressId(payload: Uint8Array<ArrayBufferLike>, network: Network): AddressId

Defined in: packages/iso-filecoin/src/address.js:450

Parameters

ParameterTypeDescription
payloadUint8Array<ArrayBufferLike>
networkNetwork

Returns

AddressId

Overrides

Address.constructor

Methods

checksum()

checksum(): Uint8Array<ArrayBufferLike>

Defined in: packages/iso-filecoin/src/address.js:337

Returns

Uint8Array<ArrayBufferLike>

Inherited from

Address.checksum


to0x()

to0x(options: AddressRpcOptions): Promise<string>

Defined in: packages/iso-filecoin/src/address.js:571

Parameters

ParameterTypeDescription
optionsAddressRpcOptions

Returns

Promise<string>

Overrides

Address.to0x


toBytes()

toBytes(): Uint8Array<ArrayBuffer>

Defined in: packages/iso-filecoin/src/address.js:329

Returns

Uint8Array<ArrayBuffer>

Inherited from

Address.toBytes


toContractDestination()

toContractDestination(): `0x${string}`

Defined in: packages/iso-filecoin/src/address.js:333

Returns

`0x${string}`

Inherited from

Address.toContractDestination


toIdAddress()

toIdAddress(options: AddressRpcSafetyOptions): Promise<AddressId>

Defined in: packages/iso-filecoin/src/address.js:348

Convert to ID address

Parameters

ParameterTypeDescription
optionsAddressRpcSafetyOptions

Returns

Promise<AddressId>

Inherited from

Address.toIdAddress


toIdMaskAddress()

toIdMaskAddress(): string

Defined in: packages/iso-filecoin/src/address.js:524

Convert address to ID masked 0x address

To convert to an eth address you problably should use to0x

Returns

string


toRobust()

toRobust(options: AddressRpcOptions): Promise<IAddress>

Defined in: packages/iso-filecoin/src/address.js:541

Get robust address from public key address

Parameters

ParameterTypeDescription
optionsAddressRpcOptions

Returns

Promise<IAddress>


toString()

toString(): string

Defined in: packages/iso-filecoin/src/address.js:532

Returns

string

Overrides

Address.toString


fromBytes()

static fromBytes(bytes: Uint8Array<ArrayBufferLike>, network: Network): AddressId

Defined in: packages/iso-filecoin/src/address.js:487

Create address from bytes

Parameters

ParameterTypeDescription
bytesUint8Array<ArrayBufferLike>
networkNetwork

Returns

AddressId


fromEthAddress()

static fromEthAddress(address: string, network: Network): AddressId

Defined in: packages/iso-filecoin/src/address.js:500

Create ID address from ID masked 0x address

Parameters

ParameterTypeDescription
addressstring
networkNetwork

Returns

AddressId


fromString()

static fromString(address: string): AddressId

Defined in: packages/iso-filecoin/src/address.js:461

Create address from string

Parameters

ParameterTypeDescription
addressstring

Returns

AddressId

Properties

[symbol]

[symbol]: boolean = true;

Defined in: packages/iso-filecoin/src/address.js:308

Inherited from

Address.[symbol]


id

id: bigint;

Defined in: packages/iso-filecoin/src/address.js:453


network

network: Network;

Defined in: packages/iso-filecoin/src/address.js:317

Inherited from

Address.network


networkPrefix

networkPrefix: "f" | "t";

Defined in: packages/iso-filecoin/src/address.js:318

Inherited from

Address.networkPrefix


payload

payload: Uint8Array<ArrayBufferLike>;

Defined in: packages/iso-filecoin/src/address.js:316

Inherited from

Address.payload


protocol

protocol: 0;

Defined in: packages/iso-filecoin/src/address.js:452

Inherited from

Address.protocol