Skip to content

AddressDelegated

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

Delegated address f4..

See

https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0048.md

Implements

Extends

  • Address

Constructors

Constructor

new AddressDelegated(
namespace: number,
payload: Uint8Array<ArrayBufferLike>,
network: Network): AddressDelegated;

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

Parameters

ParameterType
namespacenumber
payloadUint8Array<ArrayBufferLike>
networkNetwork

Returns

AddressDelegated

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(_rpc: AddressRpcOptions): Promise<string>;

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

Convert address to ethereum address

Parameters

ParameterType
_rpcAddressRpcOptions

Returns

Promise<string>

Overrides

Address.to0x

toBytes()

toBytes(): Uint8Array<ArrayBuffer>;

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

Returns

Uint8Array<ArrayBuffer>

Overrides

Address.toBytes

toContractDestination()

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

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

Returns

`0x${string}`

Inherited from

Address.toContractDestination

toEthAddress()

toEthAddress(): string;

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

Converts to 0x eth address, it’s similar to to0x but sync because f4s dont need to check the chain to get the address

Returns

string


toIdAddress()

toIdAddress(options: AddressRpcSafetyOptions): Promise<AddressId>;

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

Convert to ID address

Parameters

ParameterType
optionsAddressRpcSafetyOptions

Returns

Promise<AddressId>

Inherited from

Address.toIdAddress

toString()

toString(): string;

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

Returns

string

Overrides

Address.toString

fromBytes()

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

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

Create address from bytes

Parameters

ParameterType
bytesUint8Array<ArrayBufferLike>
networkNetwork

Returns

AddressDelegated


fromEthAddress()

static fromEthAddress(address: string, network: Network): AddressDelegated;

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

Create delegated address from ethereum address

Parameters

ParameterType
addressstring
networkNetwork

Returns

AddressDelegated


fromString()

static fromString(address: string): AddressDelegated;

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

Create address from string

Parameters

ParameterType
addressstring

Returns

AddressDelegated

Properties

[symbol]

[symbol]: boolean = true;

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

Inherited from

Address.[symbol]

namespace

namespace: number;

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


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: 4;

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

Inherited from

Address.protocol