Eth
These methods are used for Ethereum-compatible JSON-RPC calls
EthAccounts will always return [] since we don't expect Lotus to manage private keys
EthAccounts
There are not yet any comments for this method.
Perms: read
Inputs: null
Response:
["0x5cbeecf99d3fdb3f25e309cc264f240bb0664031"]EthAddressToFilecoinAddress
EthAddressToFilecoinAddress converts an EthAddress into an f410 Filecoin Address
Perms: read
Inputs:
["0x5cbeecf99d3fdb3f25e309cc264f240bb0664031"]Response: "f01234"
FilecoinAddressToEthAddress
FilecoinAddressToEthAddress converts any Filecoin address to an EthAddress.
This method supports all Filecoin address types:
f0andf4addresses: Converted directly.f1/f2/f3addresses: First converted to their correspondingf0ID address, then to an0xEthAddress.
Note:
f0 ID addresses are not permanent and can be affected by chain reorganizations. To account for this, the API includes a
blkNumparameter, which specifies the block number that is used to determine the tipset state to use for converting an f1/f2/f3 address to an f0 address. This parameter functions similarly to theblkNumparameter in the existingEthGetBlockByNumberAPI. See Alchemy Docs - eth_getBlockByNumber for more details.
Requirements:
For
f1/f2/f3addresses, they must be instantiated on-chain, asf0ID addresses are only assigned to actors when they are created on-chain. The simplest way to instantiate an address on chain is to send a transaction to the address.
Parameters:
filecoinAddress: The Filecoin address to convert.
blkNum: The block number or state for the conversion. Defaults to "finalized" for maximum safety. Possible values: "pending", "latest", "finalized", "safe", or a specific block number represented as hex.
Perms: read
Input:
Response:
Input:
Response:
EthBlockNumber
EthBlockNumber returns the height of the latest (heaviest) TipSet
Perms: read
Inputs: null
Response: "0x5"
EthCall
Perms: read
Inputs:
Response: "0x07"
EthChainId
Perms: read
Inputs: null
Response: "0x5"
EthEstimateGas
Perms: read
Inputs:
Response: "0x5"
EthFeeHistory
Perms: read
Inputs:
Response:
EthGasPrice
Perms: read
Inputs: null
Response: "0x0"
EthGetBalance
Perms: read
Inputs:
Response: "0x0"
EthGetBlockByHash
Perms: read
Inputs:
Response:
EthGetBlockByNumber
Perms: read
Inputs:
Response:
EthGetBlockTransactionCountByHash
EthGetBlockTransactionCountByHash returns the number of messages in the TipSet
Perms: read
Inputs:
Response: "0x5"
EthGetBlockTransactionCountByNumber
EthGetBlockTransactionCountByNumber returns the number of messages in the TipSet
Perms: read
Inputs:
Response: "0x5"
EthGetCode
Perms: read
Inputs:
Response: "0x07"
EthGetFilterChanges
Polling method for a filter, returns event logs which occurred since last poll. (requires write perm since timestamp of last filter execution will be written)
Perms: read
Inputs:
Response:
EthGetFilterLogs
Returns event logs matching filter with given id. (requires write perm since timestamp of last filter execution will be written)
Perms: read
Inputs:
Response:
EthGetLogs
Returns event logs matching given filter spec.
Perms: read
Inputs:
Response:
EthGetMessageCidByTransactionHash
Perms: read
Inputs:
Response:
EthGetStorageAt
Perms: read
Inputs:
Response: "0x07"
EthGetTransactionByBlockHashAndIndex
Perms: read
Inputs:
Response:
EthGetTransactionByBlockNumberAndIndex
Perms: read
Inputs:
Response:
EthGetTransactionByHash
Perms: read
Inputs:
Response:
EthGetTransactionByHashLimited
Perms: read
Inputs:
Response:
EthGetTransactionCount
Perms: read
Inputs:
Response: "0x5"
EthGetTransactionHashByCid
Perms: read
Inputs:
Response: "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"
EthGetTransactionReceipt
Perms: read
Inputs:
Response:
EthGetTransactionReceiptLimited
Perms: read
Inputs:
Response:
EthMaxPriorityFeePerGas
Perms: read
Inputs: null
Response: "0x0"
EthNewBlockFilter
Installs a persistent filter to notify when a new block arrives.
Perms: read
Inputs: null
Response: "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"
EthNewFilter
Installs a persistent filter based on given filter spec.
Perms: read
Inputs:
Response: "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"
EthNewPendingTransactionFilter
Installs a persistent filter to notify when new messages arrive in the message pool.
Perms: read
Inputs: null
Response: "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"
EthProtocolVersion
Perms: read
Inputs: null
Response: "0x5"
EthSendRawTransaction
Perms: read
Inputs:
Response: "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"
EthSubscribe
Subscribe to different event types using websockets eventTypes is one or more of:
newHeads: notify when new blocks arrive.
pendingTransactions: notify when new messages arrive in the message pool.
logs: notify new event logs that match a criteria params contains additional parameters used with the log event type The client will receive a stream of EthSubscriptionResponse values until EthUnsubscribe is called.
Perms: read
Inputs:
Response: "0x37690cfec6c1bf4c3b9288c7a5d783e98731e90b0a4c177c2a374c7a9427355e"
EthSyncing
Perms: read
Inputs: null
Response: false
EthTraceBlock
TraceAPI related methods
Returns traces created at given block
Perms: read
Inputs:
Response:
EthTraceReplayBlockTransactions
Replays all transactions in a block returning the requested traces for each transaction
Perms: read
Inputs:
Response:
EthUninstallFilter
Uninstalls a filter with given id.
Perms: read
Inputs:
Response: true
EthUnsubscribe
Unsubscribe from a websocket subscription
Perms: read
Inputs:
Response: true
Last updated
Was this helpful?