AddressDelegated
Defined in: packages/iso-filecoin/src/address.js:830
Delegated address f4..
https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0048.md
Implements
Section titled “Implements”Extends
Section titled “Extends”Address
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new AddressDelegated(
namespace
,payload
,network
):AddressDelegated
Defined in: packages/iso-filecoin/src/address.js:836
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
namespace | number |
payload | Uint8Array <ArrayBufferLike > |
network | Network |
Returns
Section titled “Returns”AddressDelegated
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(
_rpc
):Promise
<string
>
Defined in: packages/iso-filecoin/src/address.js:940
Convert address to ethereum address
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
_rpc | 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:965
Returns
Section titled “Returns”Overrides
Section titled “Overrides”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
toEthAddress()
Section titled “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
Section titled “Returns”string
toIdAddress()
Section titled “toIdAddress()”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”Inherited from
Section titled “Inherited from”Address.toIdAddress
toString()
Section titled “toString()”toString():
string
Defined in: packages/iso-filecoin/src/address.js:959
Returns
Section titled “Returns”string
Overrides
Section titled “Overrides”Address.toString
fromBytes()
Section titled “fromBytes()”
static
fromBytes(bytes
,network
):AddressDelegated
Defined in: packages/iso-filecoin/src/address.js:895
Create address from bytes
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
bytes | Uint8Array <ArrayBufferLike > |
network | Network |
Returns
Section titled “Returns”AddressDelegated
fromEthAddress()
Section titled “fromEthAddress()”
static
fromEthAddress(address
,network
):AddressDelegated
Defined in: packages/iso-filecoin/src/address.js:915
Create delegated address from ethereum address
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
address | string |
network | Network |
Returns
Section titled “Returns”AddressDelegated
fromString()
Section titled “fromString()”
static
fromString(address
):AddressDelegated
Defined in: packages/iso-filecoin/src/address.js:858
Create address from string
Parameters
Section titled “Parameters”Parameter | Type |
---|---|
address | string |
Returns
Section titled “Returns”AddressDelegated
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]
namespace
Section titled “namespace”namespace:
number
Defined in: packages/iso-filecoin/src/address.js:839
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:
4
Defined in: packages/iso-filecoin/src/address.js:838
Inherited from
Section titled “Inherited from”Address.protocol