The following EVM-compatible JSON-RPC methods provide convenient access to onchain data on Base.
base
or base-sepolia
).
Batch request example of eth_getTransactionReceipt
eth_*
namespace.
eth_*
namespace, we only support the following block tags: latest
, earliest
, and block number in hex format.eth_blockNumber
eth_getBlockByNumber
eth_getBlockByHash
eth_getBlockTransactionCountByHash
eth_getBlockTransactionCountByNumber
eth_getTransactionByHash
eth_getTransactionReceipt
eth_getTransactionByBlockHashAndIndex
eth_getTransactionByBlockNumberAndIndex
eth_getLogs
eth_getLogs
has a max block range limit of 1000
blocks.eth_call
eth_getBalance
eth_getCode
eth_getTransactionCount
eth_chainId
eth_sendRawTransaction
eth_gasPrice
eth_getStorageAt
eth_estimateGas
eth_protocolVersion
eth_syncing
eth_feeHistory
eth_mining
eth_hashrate
eth_accounts
eth_newFilter
eth_newBlockFilter
eth_uninstallFilter
eth_getFilterChanges
eth_getFilterLogs
eth_getFilteth_getWorkerLogs
eth_submitWork
eth_submitHashrate
debug_*
namespace.
debug_*
namespace, we only support the following tracer types: callTracer
.debug_traceBlockByHash
debug_traceBlockByNumber
debug_traceCall
net_*
namespace.
net_version
net_listening
net_peercount
web3_*
namespace.
web3_clientVersion