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
Parameter | Type |
---|---|
namespace | number |
payload | Uint8Array <ArrayBufferLike > |
network | Network |
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
Parameter | Type |
---|---|
_rpc | AddressRpcOptions |
Returns
Promise
<string
>
Overrides
Address.to0x
toBytes()
toBytes(): Uint8Array<ArrayBuffer>;
Defined in: packages/iso-filecoin/src/address.js:965
Returns
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
Parameter | Type |
---|---|
options | AddressRpcSafetyOptions |
Returns
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
Parameter | Type |
---|---|
bytes | Uint8Array <ArrayBufferLike > |
network | Network |
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
Parameter | Type |
---|---|
address | string |
network | Network |
Returns
AddressDelegated
fromString()
static fromString(address: string): AddressDelegated;
Defined in: packages/iso-filecoin/src/address.js:858
Create address from string
Parameters
Parameter | Type |
---|---|
address | string |
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