Ink RPC Methods

eth

MethodNotes
eth_accountsReturns a list of addresses owned by the client.
eth_blockNumberReturns the current block height.
eth_callExecutes a new message call without creating a transaction on the blockchain.
eth_chainIdReturns the chain’s identifier in hexadecimal format.
eth_estimateGasEstimates the gas required to send the transaction.
eth_feeHistoryReturns historical gas information for the specified range of blocks.
eth_gasPriceReturns the current gas price in OKB.
eth_getBalanceReturns the balance of a given account address at a specified block number.
eth_getBlockByHashReturns block information given its hash, including a boolean indicating success.
eth_getBlockByNumberReturns information about a block by its block number.
eth_getBlockReceiptsReturns all transaction receipts for a given block.
eth_getBlockTransactionCountByHashReturns the total transaction count for a specified block hash.
eth_getBlockTransactionCountByNumberReturns the total transaction count for a specified block number.
eth_getCodeReturns the code at a given account address at a specific block number.
eth_getLogsReturns an array of logs matching a specified filter object.
eth_getProofReturns account and storage values, including Merkle proofs.
eth_getRawTransactionByBlockHashAndIndexReturns raw transaction data given a block hash and transaction index.
eth_getRawTransactionByBlockNumberAndIndexReturns raw transaction data given a block number and transaction index.
eth_getRawTransactionByHashReturns raw transaction data given its hash.
eth_getStorageAtReturns the storage address for a given account address at a specific block.
eth_getTransactionByBlockHashAndIndexReturns transaction details based on block hash and transaction index.
eth_getTransactionByBlockNumberAndIndexReturns transaction details by block height and block index.
eth_getTransactionByHashReturns details of a transaction from its hash.
eth_getTransactionCountReturns the total transaction count for a given account address and block number.
eth_getTransactionReceiptReturns the receipt of a transaction given its hash.
eth_getUncleByBlockHashAndIndexAlways returns empty.
eth_getUncleByBlockNumberAndIndexAlways returns empty.
eth_getUncleCountByBlockHashAlways returns empty.
eth_getUncleCountByBlockNumberAlways returns empty.
eth_getWorkReturns the hash of the current block, seed hash, and boundary condition.
eth_hashrateReturns the number of hashes per second that the node is mining with.
eth_maxPriorityFeePerGasReturns the current maxPriorityFeePerGas per EIP-1559 rules.
eth_miningReturns true if the client is actively mining new blocks.
eth_newFilterCreates a new filter using specific topics.
eth_pendingTransactionsReturns a list of pending transactions in the transaction pool.
eth_sendMessageSends a signed message call transaction.
eth_sendRawTransactionCreates a new message, call transaction, or contract creation for signed transactions.
eth_submitHashRateSubmits the mining hashrate.
eth_submitWorkSubmits a proof-of-work solution.
eth_subscribeSubscribes to events via JSON-RPC notifications.
eth_syncingReturns an object with the sync status or false if not syncing.
eth_unsubscribeUnsubscribes from an event using the provided subscription ID.

net

MethodNotes
net_listeningReturns true if actively listening for network connections.
net_peerCountReturns the number of peers currently connected to the client.
net_versionReturns the current network id.

debug

MethodNotes
debug_traceBlockTrace all transactions within a block using a given tracer.
debug_traceBlockByHashExecutes all transactions in a block specified by its hash, using a tracer.
debug_traceBlockByNumberExecutes all transactions in a block specified by its number, using a tracer (trace mode required).
debug_traceCallReturns the number of possible tracing results for the given block execution.
debug_traceTransactionReturns all traces associated with a given transaction.

optimism

MethodNotes
optimism_outputAtBlockGet the output root at a specific block.
optimism_rollupConfigGet the rollup configuration parameters.
optimism_syncStatusGet the synchronization status.
optimism_versionGet the software version.

web3

MethodNotes
web3_clientVersionReturns the Web3 client version.
web3_sha3Returns keccak-256 (not the standardized SHA3-256) of the given data.

👋 Need Help?

Contact us through email or our support page for any issues, bugs, or assistance you may need.