X Layer

📘

See the X Layer RPC API connection guide.

eth

MethodNotesCompute Unit Value
eth_blockNumberReturns the number of the most recent block.1
eth_callExecutes a message call without creating a transaction on the blockchain.10
eth_chainIdReturns the chain identifier as a hexadecimal quantity.1
eth_estimateGasEstimates the gas required to execute a transaction.50
eth_feeHistoryReturns fee-market data for a requested range of blocks.1
eth_gasPriceReturns the current gas price per unit of gas as a hexadecimal quantity.5
eth_getBalanceReturns an account's balance at a specified block.5
eth_getBlockByHashReturns a block by hash, with either full transaction objects or transaction hashes.5
eth_getBlockByNumberReturns a block by number or block tag.5
eth_getBlockReceiptsReturns the transaction receipts for a specified block.5
eth_getBlockTransactionCountByHashReturns the number of transactions in a block identified by hash.5
eth_getBlockTransactionCountByNumberReturns the number of transactions in a block identified by number or tag.5
eth_getCodeReturns the code stored at an address at a specified block.5
eth_getFilterChangesReturns changes since the last poll for a filter.5
eth_getFilterLogsReturns all logs matching an existing filter.5
eth_getLogsReturns logs matching a filter object.50
eth_getProofReturns account and storage proofs for an address at a specified block.5
eth_getRawTransactionByBlockHashAndIndexReturns a raw transaction by block hash and transaction index.5
eth_getRawTransactionByBlockNumberAndIndexReturns a raw transaction by block number or tag and transaction index.5
eth_getStorageAtReturns the value stored at a specified storage position for an address at a block.5
eth_getTransactionByBlockHashAndIndexReturns a transaction by block hash and transaction index.5
eth_getTransactionByBlockNumberAndIndexReturns a transaction by block number or tag and transaction index.5
eth_getTransactionByHashReturns a transaction by its hash.5
eth_getTransactionCountReturns the number of transactions sent from an address at a specified block.10
eth_getTransactionReceiptReturns the receipt for a transaction hash.5
eth_getUncleByBlockHashAndIndexReturns the uncle at an index in a block identified by hash; X Layer returns no uncle data.5
eth_getUncleByBlockNumberAndIndexReturns the uncle at an index in a block identified by number; X Layer returns no uncle data.5
eth_getUncleCountByBlockHashReturns the uncle count for a block identified by hash; X Layer returns zero.5
eth_getUncleCountByBlockNumberReturns the uncle count for a block identified by number; X Layer returns zero.5
eth_maxPriorityFeePerGasReturns a suggested priority fee per gas.1
eth_newBlockFilterCreates a filter that reports newly added blocks.5
eth_newFilterCreates a filter for logs matching supplied criteria.5
eth_protocolVersionReturns the current Ethereum protocol version.1
eth_sendRawTransactionSubmits a signed, serialized transaction and returns its transaction hash.100
eth_subscribeCreates a subscription for supported events over WebSocket.1
eth_syncingReturns synchronization status or false when the node is not syncing.1
eth_uninstallFilterRemoves a filter and returns whether it was removed.5
eth_unsubscribeCancels an existing WebSocket subscription.1

debug

🚧

These methods can only be used if the request parameters contain tracer: callTracer.

MethodNotesCompute Unit Value
debug_traceBlockTraces an RLP-encoded block and returns execution traces for its transactions.50
debug_traceTransactionReplays a transaction identified by hash and returns the selected execution trace.50
debug_traceBlockByHashReplays a block identified by hash and returns execution traces for its transactions.50
debug_traceBlockByNumberReplays a block identified by number or tag and returns execution traces for its transactions.50

net

MethodNotesCompute Unit Value
net_versionReturns the current network identifier.1
net_peerCountReturns the number of peers connected to the node.1

web3

MethodNotesCompute Unit Value
web3_clientVersionReturns the current client version.1
web3_sha3Returns the Keccak-256 hash of the supplied data.1

trace

MethodNotesCompute Unit Value
trace_blockReturns execution traces for every transaction in a specified block.20
trace_callSimulates a call without broadcasting it and returns the requested trace data.20
trace_callManySimulates multiple calls in order and returns the requested trace data for each call.40
trace_filterReturns traces matching a block range and from/to address criteria.20
trace_getReturns a specific trace from a transaction by trace address.20
trace_replayBlockTransactionsReplays every transaction in a block and returns the requested trace types.40
trace_replayTransactionReplays a transaction and returns the requested trace types.40
trace_transactionReturns all traces generated by a transaction.20