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.
https://spec.filecoin.io/appendix/address/#section-appendix.address.protocol-0-ids
Implements
Section titled “Implements”Extends
Section titled “Extends”Address
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AddressId(
payload
,network
):AddressId
Defined in: packages/iso-filecoin/src/address.js:450
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
payload | Uint8Array <ArrayBufferLike > |
network | Network |
Returns
Section titled “Returns”AddressId
Overrides
Section titled “Overrides”Address.constructor
Methods
Section titled “Methods”checksum()
Section titled “checksum()”checksum():
Uint8Array
<ArrayBufferLike
>
Defined in: packages/iso-filecoin/src/address.js:337
Returns
Section titled “Returns”Uint8Array
<ArrayBufferLike
>
Inherited from
Section titled “Inherited from”Address.checksum
to0x()
Section titled “to0x()”to0x(
options
):Promise
<string
>
Defined in: packages/iso-filecoin/src/address.js:571
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
options | AddressRpcOptions |
Returns
Section titled “Returns”Promise
<string
>
Overrides
Section titled “Overrides”Address.to0x
toBytes()
Section titled “toBytes()”toBytes():
Uint8Array
<ArrayBuffer
>
Defined in: packages/iso-filecoin/src/address.js:329
Returns
Section titled “Returns”Inherited from
Section titled “Inherited from”Address.toBytes
toContractDestination()
Section titled “toContractDestination()”toContractDestination():
`0x${string}`
Defined in: packages/iso-filecoin/src/address.js:333
Returns
Section titled “Returns”`0x${string}`
Inherited from
Section titled “Inherited from”Address.toContractDestination
toIdAddress()
Section titled “toIdAddress()”toIdAddress(
options
):Promise
<AddressId
>
Defined in: packages/iso-filecoin/src/address.js:348
Convert to ID address
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
options | AddressRpcSafetyOptions |
Returns
Section titled “Returns”Promise
<AddressId
>
Inherited from
Section titled “Inherited from”Address.toIdAddress
toIdMaskAddress()
Section titled “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 probably should use to0x
Returns
Section titled “Returns”string
toRobust()
Section titled “toRobust()”Defined in: packages/iso-filecoin/src/address.js:541
Get robust address from public key 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/address.js:532
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”Address.toString
fromBytes()
Section titled “fromBytes()”
static
fromBytes(bytes
,network
):AddressId
Defined in: packages/iso-filecoin/src/address.js:487
Create address from bytes
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
bytes | Uint8Array <ArrayBufferLike > |
network | Network |
Returns
Section titled “Returns”AddressId
fromIdMaskAddress()
Section titled “fromIdMaskAddress()”
static
fromIdMaskAddress(address
,network
):AddressId
Defined in: packages/iso-filecoin/src/address.js:500
Create ID address from ID masked 0x address
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
address | string |
network | Network |
Returns
Section titled “Returns”AddressId
fromString()
Section titled “fromString()”
static
fromString(address
):AddressId
Defined in: packages/iso-filecoin/src/address.js:461
Create address from string
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
address | string |
Returns
Section titled “Returns”AddressId
Properties
Section titled “Properties”[symbol]
Section titled “[symbol]”[symbol]:
boolean
=true
Defined in: packages/iso-filecoin/src/address.js:308
Inherited from
Section titled “Inherited from”Address.[symbol]
id:
bigint
Defined in: packages/iso-filecoin/src/address.js:453
network
Section titled “network”network:
Network
Defined in: packages/iso-filecoin/src/address.js:317
Inherited from
Section titled “Inherited from”Address.network
networkPrefix
Section titled “networkPrefix”networkPrefix:
"f"
|"t"
Defined in: packages/iso-filecoin/src/address.js:318
Inherited from
Section titled “Inherited from”Address.networkPrefix
payload
Section titled “payload”payload:
Uint8Array
<ArrayBufferLike
>
Defined in: packages/iso-filecoin/src/address.js:316
Inherited from
Section titled “Inherited from”Address.payload
protocol
Section titled “protocol”protocol:
0
Defined in: packages/iso-filecoin/src/address.js:452
Inherited from
Section titled “Inherited from”Address.protocol