IAddress
Defined in: packages/iso-filecoin/src/types.ts:96
Address interface
Properties
Section titled “Properties”checksum()
Section titled “checksum()”checksum: () =>
Uint8Array
Defined in: packages/iso-filecoin/src/types.ts:103
Returns
Section titled “Returns”
optional
id:bigint
Defined in: packages/iso-filecoin/src/types.ts:102
namespace?
Section titled “namespace?”
optional
namespace:number
Defined in: packages/iso-filecoin/src/types.ts:101
network
Section titled “network”network:
Network
Defined in: packages/iso-filecoin/src/types.ts:99
networkPrefix
Section titled “networkPrefix”networkPrefix:
NetworkPrefix
Defined in: packages/iso-filecoin/src/types.ts:100
payload
Section titled “payload”payload:
Uint8Array
Defined in: packages/iso-filecoin/src/types.ts:98
protocol
Section titled “protocol”protocol:
ProtocolIndicatorCode
Defined in: packages/iso-filecoin/src/types.ts:97
to0x()
Section titled “to0x()”to0x: (
options
) =>Promise
<string
>
Defined in: packages/iso-filecoin/src/types.ts:116
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
Section titled “Parameters”Parameter | Type |
---|---|
options | AddressRpcOptions |
Returns
Section titled “Returns”Promise
<string
>
toBytes()
Section titled “toBytes()”toBytes: () =>
Uint8Array
Defined in: packages/iso-filecoin/src/types.ts:106
Returns
Section titled “Returns”toContractDestination()
Section titled “toContractDestination()”toContractDestination: () =>
`0x${string}`
Defined in: packages/iso-filecoin/src/types.ts:104
Returns
Section titled “Returns”`0x${string}`
toIdAddress()
Section titled “toIdAddress()”Defined in: packages/iso-filecoin/src/types.ts:110
Convert to ID address
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
options | AddressRpcOptions |
Returns
Section titled “Returns”toString()
Section titled “toString()”toString: () =>
string
Defined in: packages/iso-filecoin/src/types.ts:105
Returns
Section titled “Returns”string