# Table of Contents - [Base API Overview | dRPC](#base-api-overview-drpc) - [Base accounts info | dRPC](#base-accounts-info-drpc) - [eth_getBalance - Base](#eth-getbalance-base) - [eth_getCode - Base](#eth-getcode-base) - [Base blocks info | dRPC](#base-blocks-info-drpc) - [eth_blockNumber - Base](#eth-blocknumber-base) - [eth_getStorageAt - Base](#eth-getstorageat-base) - [eth_getBlockByHash#full - Base](#eth-getblockbyhash-full-base) - [eth_getBlockByNumber - Base](#eth-getblockbynumber-base) - [eth_getBlockByHash - Base](#eth-getblockbyhash-base) - [eth_getBlockByNumber#full - Base](#eth-getblockbynumber-full-base) - [eth_getBlockTransactionCountByNumber - Base](#eth-getblocktransactioncountbynumber-base) - [net_peerCount - Base](#net-peercount-base) - [Base debug and trace info | dRPC](#base-debug-and-trace-info-drpc) - [Ethereum and Base: Differences](#ethereum-and-base-differences) - [net_listening - Base](#net-listening-base) - [eth_newBlockFilter - Base](#eth-newblockfilter-base) - [Base transactions info | dRPC](#base-transactions-info-drpc) - [Chain chain info | dRPC](#chain-chain-info-drpc) - [eth_chainId - Base](#eth-chainid-base) - [Base gas estimation info | dRPC](#base-gas-estimation-info-drpc) - [Base executing transactions info | dRPC](#base-executing-transactions-info-drpc) - [eth_call - Base](#eth-call-base) - [eth_getBlockTransactionCountByHash - Base](#eth-getblocktransactioncountbyhash-base) - [net_version - Base](#net-version-base) - [debug_traceBlockByNumber - Base](#debug-traceblockbynumber-base) - [eth_newFilter - Base](#eth-newfilter-base) - [eth_syncing - Base](#eth-syncing-base) - [debug_traceBlockByHash - Base](#debug-traceblockbyhash-base) - [debug_traceCall - Base](#debug-tracecall-base) - [eth_getFilterLogs - Base](#eth-getfilterlogs-base) - [eth_uninstallFilter - Base](#eth-uninstallfilter-base) - [eth_getLogs - Base](#eth-getlogs-base) - [eth_sendRawTransaction - Base](#eth-sendrawtransaction-base) - [debug_traceTransaction - Base](#debug-tracetransaction-base) - [eth_getFilterChanges - Base](#eth-getfilterchanges-base) - [eth_gasPrice - Base](#eth-gasprice-base) - [Base getting unclesn info | dRPC](#base-getting-unclesn-info-drpc) - [Base transactions info | dRPC](#base-transactions-info-drpc) - [eth_getUncleCountByBlockHash - Base](#eth-getunclecountbyblockhash-base) - [Base subscriptions info | dRPC](#base-subscriptions-info-drpc) - [eth_subscribe - Base](#eth-subscribe-base) - [eth_getTransactionByBlockNumberAndIndex - Base](#eth-gettransactionbyblocknumberandindex-base) - [eth_unsubscribe - Base](#eth-unsubscribe-base) - [eth_getUncleCountByBlockNumber - Base](#eth-getunclecountbyblocknumber-base) - [eth_getTransactionByBlockHashAndIndex - Base](#eth-gettransactionbyblockhashandindex-base) - [eth_getTransactionByHash - Base](#eth-gettransactionbyhash-base) - [Base web3 info | dRPC](#base-web3-info-drpc) - [eth_newPendingTransactionFilter - Base](#eth-newpendingtransactionfilter-base) - [eth_maxPriorityFeePerGas - Base](#eth-maxpriorityfeepergas-base) - [eth_getEstimateGas - Base](#eth-getestimategas-base) - [eth_getTransactionReceipt - Base](#eth-gettransactionreceipt-base) - [web3_sha3 - Base](#web3-sha3-base) - [eth_getTransactionCount - Base](#eth-gettransactioncount-base) - [web3_clientVersion - Base](#web3-clientversion-base) --- # Base API Overview | dRPC Base API Overview ================= Welcome to the Base API Quickstart and Reference Guide. This guide provides everything you need to start building on Base using dRPC’s JSON-RPC API. Whether you're retrieving account balances, fetching block details, executing transactions, or estimating gas fees, this comprehensive guide will help you integrate Base seamlessly into your applications. This page includes: * A **Quickstart Guide** to help you set up and make your first Base API request. * A detailed list of **all Base API methods**, categorized for easy reference. [Scroll to API Methods](https://drpc.org/docs/base-api#BaseAPIMethods) Base API Quickstart[#](https://drpc.org/docs/base-api#base-api-quickstart) --------------------------------------------------------------------------- To get started with building on Base using dRPC's Base RPC API, follow these steps: **1\. Create a dRPC Account or Use Public Base RPC endpoints** By signing up for a free dRPC account, you can access their Premium Base RPC endpoints. **Public endpoints:** HTTPS https://base.drpc.org/ WSS: wss://base.drpc.org **2\. Set Up Your Development Environment** RPC can be requested in [various ways (opens in a new tab)](https://drpc.org/docs/gettingstarted/firstrequest) . In this example, we are going to use Node.js. Ensure you have [Node.js (opens in a new tab)](https://nodejs.org/) and npm installed on your system. You can verify their installation by running: node -v npm -v If not installed, download and install them from the [official Node.js website (opens in a new tab)](https://nodejs.org/) . **3\. Initialize Your Project** Create a new directory for your project and initialize it: mkdir Base-drpc-quickstart cd Base-drpc-quickstart npm init --yes **4\. Install Axios** Axios is a popular HTTP client for making API requests. Install it using npm: npm install axios **5\. Obtain dRPC Endpoint** Log in to your dRPC account and navigate to the Base RPC endpoints section. Copy the HTTPS endpoint URL for the Base Mainnet. **6\. Write Your First Script** Create an `index.js` file in your project directory and add the following code: const axios = require('axios'); const url = 'https://lb.drpc.live/base/YOUR_DRPC_API_KEY'; const payload = { jsonrpc: '2.0', id: 1, method: 'eth_blockNumber', params: [] }; axios.post(url, payload) .then(response => { console.log('The latest block number is', parseInt(response.data.result, 16)); }) .catch(error => { console.error('Error fetching block number:', error); }); Replace `‘https://lb.drpc.live/base/YOUR_DRPC_API_KEY'` with the actual endpoint URL you obtained from dRPC. **7\. Run Your Script** Execute your script using Node.js: node index.js You should see the latest Base block number printed in your console. **Additional Information** dRPC offers various features such as high performance nodes, access to multiple chains, and MEV protection. For more details, visit their [Base documentation (opens in a new tab)](https://docs.base.org/) . By following these steps, you can start building on Base using dRPC's reliable and efficient RPC endpoints. Base API Methods[#](https://drpc.org/docs/base-api#base-api-methods) --------------------------------------------------------------------- Base is a decentralized blockchain platform designed to deliver high throughput, low latency, and customizable subnets, making it ideal for building decentralized applications (dApps) and financial solutions with scalability and security. Accounts info[#](https://drpc.org/docs/base-api#accounts-info) --------------------------------------------------------------- Retrieves essential on-chain data related to accounts [eth\_getBalance](https://drpc.org/docs/base-api/accountinfo/eth_getBalance) : Retrieves the balance of an account. [eth\_getCode](https://drpc.org/docs/base-api/accountinfo/eth_getCode) : Fetches the smart contract code stored at a given address. [eth\_getStorageAt](https://drpc.org/docs/base-api/accountinfo/eth_getStorageAt) : Retrieves the data stored at a specific storage slot of an account. Blocks info[#](https://drpc.org/docs/base-api#blocks-info) ----------------------------------------------------------- Provides methods for retrieving detailed information about specific blocks [eth\_blockNumber](https://drpc.org/docs/base-api/blocksinfo/eth_blockNumber) : Retrieves the latest block number. [eth\_getBlockByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHash) : Fetches block details by hash. [eth\_getBlockByHash#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHashfull) : Returns full block details by hash. [eth\_getBlockByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumber) : Retrieves block data by block number. [eth\_getBlockByNumber#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumberfull) : Fetches full block details by number. [eth\_newBlockFilter](https://drpc.org/docs/base-api/blocksinfo/eth_newBlockFilter) : Available only on paid tier. Creates a filter for new blocks. [eth\_getBlockTransactionCountByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByHash) : Returns the transaction count for a block by its hash. [eth\_getBlockTransactionCountByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByNumber) : Retrieves the transaction count for a block by its number. Chain info[#](https://drpc.org/docs/base-api#chain-info) --------------------------------------------------------- Provides essential data about the state and performance of the Base network [eth\_chainId](https://drpc.org/docs/base-api/chaininfo/eth_chainId) : Returns the chain ID of the network. [net\_listening](https://drpc.org/docs/base-api/chaininfo/net_listening) : Checks if the client is actively listening for network connections. [net\_version](https://drpc.org/docs/base-api/chaininfo/net_version) : Returns the current network version. [net\_peerCount](https://drpc.org/docs/base-api/chaininfo/net_peerCount) : Retrieves the number of active peers connected to the node. [eth\_syncing](https://drpc.org/docs/base-api/chaininfo/eth_syncing) : Indicates the synchronization status of the node. Debug and trace[#](https://drpc.org/docs/base-api#debug-and-trace) ------------------------------------------------------------------- Available only on paid tier. These methods are useful for analyzing execution flows and debugging [debug\_traceBlockByHash](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByHash) : Traces the execution of all transactions in a block by its hash. [debug\_traceBlockByNumber](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByNumber) : Traces the execution of all transactions in a block by its number. [debug\_traceTransaction](https://drpc.org/docs/base-api/debugandtrace/debug_traceTransaction) : Provides detailed trace information for a specific transaction. [debug\_traceCall](https://drpc.org/docs/base-api/debugandtrace/debug_traceCall) : Traces a specific call without altering the blockchain state. Event logs[#](https://drpc.org/docs/base-api#event-logs) --------------------------------------------------------- Allows the filtering and retrieval of event logs generated by smart contracts [eth\_getLogs](https://drpc.org/docs/base-api/eventlogs/eth_getLogs) : Available only on paid tier. Retrieves event logs based on specified filter criteria. [eth\_newFilter](https://drpc.org/docs/base-api/eventlogs/eth_newFilter) : Available only on paid tier. Creates a new filter to monitor logs. [eth\_getFilterChanges](https://drpc.org/docs/base-api/eventlogs/eth_getFilterChanges) : Available only on paid tier. Retrieves changes for a filter since its last check. [eth\_uninstallFilter](https://drpc.org/docs/base-api/eventlogs/eth_uninstallFilter) : Uninstalls a previously created filter. [eth\_getFilterLogs](https://drpc.org/docs/base-api/eventlogs/eth_getFilterLogs) : Available only on paid tier. Fetches logs matching a specific filter. Executing transactions[#](https://drpc.org/docs/base-api#executing-transactions) --------------------------------------------------------------------------------- Are essential for interacting with smart contracts and sending transactions [eth\_call](https://drpc.org/docs/base-api/executingtransactions/eth_call) : Executes a read-only call to a smart contract without making any state changes. [eth\_sendRawTransaction](https://drpc.org/docs/base-api/executingtransactions/eth_sendRawTransaction) : Sends a raw, signed transaction to the Avalanche blockchain for execution. Gas estimation[#](https://drpc.org/docs/base-api#gas-estimation) ----------------------------------------------------------------- Provides tools to estimate gas fees and optimize transaction costs. [eth\_estimateGas](https://drpc.org/docs/base-api/gasestimation/eth_estimateGas) : Estimates the gas required for a transaction. [eth\_gasPrice](https://drpc.org/docs/base-api/gasestimation/eth_gasPrice) : Returns the current gas price on the network. [eth\_maxPriorityFeePerGas](https://drpc.org/docs/base-api/gasestimation/eth_maxPriorityFeePerGas) : Retrieves the maximum priority fee per gas unit. Getting uncles[#](https://drpc.org/docs/base-api#getting-uncles) ----------------------------------------------------------------- Provides methods to retrieve information about uncle blocks [eth\_getUncleCountByBlockHash](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockHash) : Retrieves the number of uncle blocks for a given block by its hash. [eth\_getUncleCountByBlockNumber](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockNumber) : Returns the number of uncle blocks for a specified block number. Subscriptions[#](https://drpc.org/docs/base-api#subscriptions) --------------------------------------------------------------- Enables real-time monitoring of blockchain events via WebSockets [eth\_subscribe](https://drpc.org/docs/base-api/subscriptions/eth_subscribe) : Subscribes to events such as new blocks, pending transactions, or log updates. [eth\_unsubscribe](https://drpc.org/docs/base-api/subscriptions/eth_unsubscribe) : Unsubscribes from an active WebSocket event subscription. Transactions info[#](https://drpc.org/docs/base-api#transactions-info) ----------------------------------------------------------------------- Provides methods to retrieve transaction details, counts, and receipts [eth\_getTransactionByHash](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByHash) : Retrieves transaction details using a transaction hash. [eth\_getTransactionCount](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionCount) : Returns the number of transactions sent from an address. [eth\_getTransactionReceipt](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionReceipt) : Retrieves the receipt of a processed transaction. [eth\_newPendingTransactionFilter](https://drpc.org/docs/base-api/transactionsinfo/eth_newPendingTransactionFilter) : Available only on paid tier. Sets up a filter for monitoring pending transactions. [eth\_getTransactionByBlockHashAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockHashAndIndex) : Retrieves a transaction from a block by hash and index. [eth\_getTransactionByBlockNumberAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockNumberAndIndex) : Retrieves a transaction by block number and index. Web3[#](https://drpc.org/docs/base-api#web3) --------------------------------------------- Provides methods to retrieve transaction-related data [web3\_clientVersion](https://drpc.org/docs/base-api/web3/web3_clientVersion) : Returns the version of the Avalanche node client in use. [web3\_sha3](https://drpc.org/docs/base-api/web3/web3_sha3) : Computes the Keccak-256 (SHA3) hash of the provided data. Last updated on March 3, 2026 [sendrawtransaction](https://drpc.org/docs/bitcoin-api/executingtransactions/sendrawtransaction "sendrawtransaction") [Ethereum and Base Difference](https://drpc.org/docs/base-api/ethereumbasedifference "Ethereum and Base Difference") --- # Base accounts info | dRPC Accounts info[#](https://drpc.org/docs/base-api/accountinfo#accounts-info) --------------------------------------------------------------------------- Retrieves essential on-chain data related to accounts. [eth\_getBalance](https://drpc.org/docs/base-api/accountinfo/eth_getBalance) : Retrieves the balance of an account. [eth\_getCode](https://drpc.org/docs/base-api/accountinfo/eth_getCode) : Fetches the smart contract code stored at a given address. [eth\_getStorageAt](https://drpc.org/docs/base-api/accountinfo/eth_getStorageAt) : Retrieves the data stored at a specific storage slot of an account. These methods are essential for managing account and contract-related data on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [debug\_traceCall](https://drpc.org/docs/base-api/debugandtrace/debug_traceCall "debug_traceCall") [eth\_getBalance](https://drpc.org/docs/base-api/accountinfo/eth_getBalance "eth_getBalance") --- # eth_getBalance - Base eth\_getBalance - Base ====================== eth\_getBalance. Retrieve the balance of an account --------------------------------------------------- eth\_getBalance - base \[Value: 20CU\] This method is essential for determining an account's available funds ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Check account balance before sending a transaction * Verify wallet balance for automated payments processing * Monitor account balance changes for security alerts ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires a valid account address * Node must be synchronized with the latest state * Network latency may delay balance retrieval ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "params": [\ "0xe5cB067E90D5Cd1F8052B83562Ae670bA4A211a8",\ "latest"\ ], "method": "eth_getBalance" } ' { "jsonrpc": "2.0", "id": 1, "result": "0x1" } Request params -------------- idinteger jsonrpcstring methodstring Parametersobject object addressstring The address to query the balance for. blockNumberstring The block number or tag ("latest", "earliest", "pending") at which to get the balance. * latest \[default\] \- The most recent block in the blockchain (default). * safe \- A block that has been validated by the beacon chain. * finalized \- a block confirmed by over two-thirds of validators * earliest \- A block approved by more than two-thirds of the validators. * pending \- Transactions that have been broadcast but not yet included in a block. Response -------- 200 Response params --------------- object idinteger jsonrpcstring resultstring The balance of the account in wei, returned as a hexadecimal string. [Account info](https://drpc.org/docs/base-api/accountinfo "Account info") [eth\_getCode](https://drpc.org/docs/base-api/accountinfo/eth_getCode "eth_getCode") --- # eth_getCode - Base eth\_getCode - Base =================== eth\_getCode. Retrieve the smart contract code at a given address ----------------------------------------------------------------- eth\_getCode - base \[Value: 20CU\] Is essential for developers to inspect and verify contract code deployed on the blockchain ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve deployed smart contract bytecode from blockchain * Retrieve bytecode for security analysis * Verify contract code for upgrades ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires precise contract address * Limited to "latest" block state * Dependent on network node availability ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getCode","params":["0x5B56438000bAc5ed2c6E0c1EcFF4354aBfFaf889","latest"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": "0x" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings addressstring blockNumberstring The block number or tag ("latest", "earliest", "pending") at which to get the balance. * latest \[default\] \- The most recent block in the blockchain (default). * safe \- A block that has been validated by the beacon chain. * finalized \- a block confirmed by over two-thirds of validators * earliest \- A block approved by more than two-thirds of the validators. * pending \- Transactions that have been broadcast but not yet included in a block. Response -------- 200 The smart contract code (EVM bytecode) stored at the specified address, returned as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultstring [eth\_getBalance](https://drpc.org/docs/base-api/accountinfo/eth_getBalance "eth_getBalance") [eth\_getStorageAt](https://drpc.org/docs/base-api/accountinfo/eth_getStorageAt "eth_getStorageAt") --- # Base blocks info | dRPC Blocks info[#](https://drpc.org/docs/base-api/blocksinfo#blocks-info) ---------------------------------------------------------------------- Provides methods for retrieving detailed information about specific blocks. [eth\_blockNumber](https://drpc.org/docs/base-api/blocksinfo/eth_blockNumber) : Retrieves the latest block number. [eth\_getBlockByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHash) : Fetches block details by hash. [eth\_getBlockByHash#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHashfull) : Returns full block details by hash. [eth\_getBlockByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumber) : Retrieves block data by block number. [eth\_getBlockByNumber#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumberfull) : Fetches full block details by number. [eth\_newBlockFilter](https://drpc.org/docs/base-api/blocksinfo/eth_newBlockFilter) : Available only on paid tier. Creates a filter for new blocks. [eth\_getBlockTransactionCountByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByHash) : Returns the transaction count for a block by its hash. [eth\_getBlockTransactionCountByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByNumber) : Retrieves the transaction count for a block by its number. These methods are essential for monitoring block activity on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [Ethereum and Base Difference](https://drpc.org/docs/base-api/ethereumbasedifference "Ethereum and Base Difference") [eth\_getBlockByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumber "eth_getBlockByNumber") --- # eth_blockNumber - Base eth\_blockNumber - Base ======================= eth\_blockNumber. Retrieve the latest block number -------------------------------------------------- eth\_blockNumber - base \[Value: 20CU\] The method is used to get the recent block number ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Get the latest block number for syncing * Verify blockchain progress up to the current block * Check latest block number for monitoring purposes ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Node must be synchronized with the network * Requires access to a reliable node * Network latency may affect response time ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_blockNumber" } ' { "jsonrpc": "2.0", "id": 1, "result": "0xfd2fdb" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 Returns a list of log objects or an empty list if there have been no updates since the previous query. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_strings The latest block number, returned as a hexadecimal string. [eth\_getBlockTransactionCountByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByNumber "eth_getBlockTransactionCountByNumber") [eth\_getBlockByNumber#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumberfull "eth_getBlockByNumber#full") --- # eth_getStorageAt - Base eth\_getStorageAt - Base ======================== eth\_getStorageAt. Retrieves the value stored at a specific storage position of a given address ----------------------------------------------------------------------------------------------- eth\_getStorageAt - base \[Value: 20CU\] Retrieves the value stored at a specific storage slot of a contract address at a given block ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve specific storage value from smart contract * Verify the current state of contract storage * Audit smart contract storage for data integrity ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires a valid smart contract address * Needs an accurate specific storage slot key * Depends on the latest blockchain state data ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getStorageAt","params":["0xE592427A0AEce92De3Edee1F18E0157C05861564", "0x0", "latest"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": "0x0000000000000000000000000000000000000000000000000000000000000000" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings addressstring The address of the smart contract. positionstring The storage slot position in hexadecimal format. blockNumberstring (optional) Block number as an integer, or string * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. Response -------- 200 Response params --------------- object idinteger jsonrpcstring resultstring The value stored at the specified storage slot, returned as a hexadecimal string. [eth\_getCode](https://drpc.org/docs/base-api/accountinfo/eth_getCode "eth_getCode") [Event logs](https://drpc.org/docs/base-api/eventlogs "Event logs") --- # eth_getBlockByHash#full - Base eth\_getBlockByHashfull - Base ============================== eth\_getBlockByHashfull. Fetches a block by its hash, providing with information about the block's transactions --------------------------------------------------------------------------------------------------------------- eth\_getBlockByHash#full - base \[Value: 20CU\] Fetches detailed information about a block using its hash, including all its transactions when transaction\_detail\_flag is set to true ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve full block details using block hash * Get transactions and metadata for a specific block * Analyze block data for blockchain synchronization checks ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid block hash as input parameter * Full transaction data increases response size significantly * Node must be fully synchronized with the blockchain ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_getBlockByHash", "params": [\ "0x3f07a9c83155594c000642e7d60e8a8a00038d03e9849171a05ed0e2d47acbb3",\ true\ ] } ' { "jsonrpc": "2.0", "id": 1, "result": { "difficulty": "0x4ea3f27bc", "extraData": "0x65746865726d696e652d6575312d32", "gasLimit": "0x47e7c4", "gasUsed": "0x6384", "hash": "0x5bad55fbd7e0f20eac95f45f55f997216de10aaf176314c236b0c3c93c5d1f17", "logsBloom": "0x0", "miner": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5", "mixHash": "0x75b1f48901cf1d37ad43c2b29eafeb1f3ae5cf5c5d55b1b3be6b2be4a25d6ec6", "nonce": "0x539bd4979b50162d", "number": "0x1b4", "parentHash": "0x8e3d7ea52a14b9d773c37d67e2a4b8e6a12573c3d60a1cd1a58455d3008d1c9d", "receiptsRoot": "0xbcdfc35b86bedf72e283106f1f9a03c8d99a6de2b1cba6b01ff3e78e924e05c8", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad0d4e8eeb004cfe8dec7d1f3469a7f5f", "size": "0x220", "stateRoot": "0x7d00dcd0e0d14e6f7d9dc57116d0e5f76b0abdc716a1d7e6b4df87eae7795b7a", "timestamp": "0x55ba467c", "totalDifficulty": "0x78ed983323d", "transactions": [\ {\ "blockHash": "0x5bad55fbd7e0f20eac95f45f55f997216de10aaf176314c236b0c3c93c5d1f17",\ "blockNumber": "0x1b4",\ "from": "0x5cb2045c43d14a5f5e5f1ea60c5b02e0a93032cf",\ "gas": "0x7d3c",\ "gasPrice": "0xba43b7400",\ "hash": "0x1a85165ac88f73b7a290104f614cf08d8b4f3e193f41f209c3716d9c237139f5",\ "input": "0x",\ "nonce": "0x15",\ "to": "0x3535353535353535353535353535353535353535",\ "transactionIndex": "0x0",\ "value": "0x1bc16d674ec80000",\ "v": "0x1c",\ "r": "0x5e1d3a76fbf824220e68236e2d51cb98f349a5a6e4f43e3f471f5d0421d4aee2",\ "s": "0x5e1d3a76fbf824220e68236e2d51cb98f349a5a6e4f43e3f471f5d0421d4aee2"\ }\ // Additional transaction objects can be included here\ ], "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncles": [] } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array hashstring The 32-byte identifier of the block. transaction\_detail\_flagboolean When set to true, full transaction objects are returned; otherwise, only the transaction hashes are provided. Response -------- 200 Response params --------------- object idinteger jsonrpcstring resultobject Contains detailed information about the block if found. object noncestring 8-byte hash of the generated proof-of-work; null for pending blocks. hashstring 32-byte block hash; null for pending blocks. baseFeePerGasstring Base fee per gas in wei for the block, encoded in hexadecimal. numberstring Block number; null for pending blocks. parentHashstring 32-byte hash of the parent block. sha3Unclesstring 32-byte SHA3 hash of the uncles data. logsBloomstring 256-byte bloom filter for the block's logs; null for pending blocks. transactionsRootstring 32-byte root of the transaction trie. stateRootstring 32-byte root of the final state trie. receiptsRootstring 32-byte root of the receipts trie. minerstring 20-byte address of the mining reward recipient. difficultystring Difficulty level of the block. totalDifficultystring Total difficulty of the chain up to this block. extraDatastring Extra data field of the block. sizestring Size of the block in bytes. gasLimitstring Maximum gas allowed in the block. gasUsedstring Total gas used by all transactions in the block. timestampstring Unix timestamp of the block creation. transactionsarray Array of transaction objects object blockHashstring Hash of the block containing the transaction. blockNumberstring Block number containing this transaction; null for pending transactions. transactionIndexstring Index position of the transaction in the block; null for pending transactions. noncestring Number of prior transactions from the sender. hashstring 2-byte transaction hash. fromstring 20-byte address of the sender. gasstring Gas provided by the sender. gasPricestring Gas price provided by the sender in wei. inputstring Data sent with the transaction. rstring ECDSA signature r. sstring ECDSA signature s. tostring 20-byte address of the receiver; null for contract creation transactions. vstring ECDSA recovery id. valuestring Value transferred in Wei. unclesarray\_of\_strings List of uncle block hashes. [eth\_getBlockByNumber#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumberfull "eth_getBlockByNumber#full") [eth\_getBlockByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHash "eth_getBlockByHash") --- # eth_getBlockByNumber - Base eth\_getBlockByNumber - Base ============================ eth\_getBlockByNumber. Retrieve full block details by block number ------------------------------------------------------------------ eth\_getBlockByNumber - base \[Value: 20CU\] Retrieves detailed information about a specific block on the blockchain by its number ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Verify transactions in a specific block * Compare block details for node sync * Monitor contract events for off-chain triggers ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Response delays due to network latency * Slight data discrepancies until finality * Strain on resources with frequent requests ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": [\ "finalized",\ false\ ] } ' { "jsonrpc": "2.0", "id": 0, "result": { "number": "0x1b4", "difficulty": "0x4ea3f27bc", "extraData": "0x476574682f4c5649562f76312e302e302f6c696e75782f676f312e342e32", "gasLimit": "0x1388", "gasUsed": "0x0", "hash": "0xdc0818cf78f21a8e70579cb46a43643f78291264dda342ae31049421c82d21ae", "logsBloom": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000", "miner": "0xbb7b8287f3f0a933474a79eae42cbca977791171", "mixHash": "0x4fffe9ae21f1c9e15207b1f472d5bbdd68c9595d461666602f2be20daf5e7843", "nonce": "0x689056015818adbe", "parentHash": "0xe99e022112df268087ea7eafaf4790497fd21dbeeb6bd7a1721df161a6657a54", "receiptsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "size": "0x220", "stateRoot": "0xddc8b0234c2e0cad087c8b389aa7ef01f7d79b2570bccb77ce48648aa61c904d", "timestamp": "0x55ba467c", "totalDifficulty": "0x78ed983323d", "transactions": [], "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncles": [] } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array blockNumberstring The block number or tag ("latest", "earliest", "pending") at which to get the balance. * latest \[default\] \- The most recent block in the blockchain (default). * safe \- A block that has been validated by the beacon chain. * finalized \- a block confirmed by over two-thirds of validators * earliest \- A block approved by more than two-thirds of the validators. * pending \- Transactions that have been broadcast but not yet included in a block. transaction\_detail\_flagboolean If set to true, returns the full transaction objects for all transactions in the block; if false, returns only the transaction hashes. Response -------- 200 The block object if the block is found, containing detailed information such as block hash, parent hash, miner, transactions, gas used, and more. If the block is not found, it returns null. Response params --------------- object baseFeePerGasstring Hexadecimal string of the base fee per gas. Not included for blocks before the EIP-1559 upgrade. difficultyinteger The block's difficulty level, encoded as a hexadecimal. extraDatastring Additional data field of the block. gasLimitstring Maximum gas allowed in the block, in hexadecimal. gasUsedstring Total gas used by all transactions in the block, in hexadecimal. hashstring Hash of the block, null if pending. logsBloomstring Bloom filter for the block's logs, null if pending. minerstring Address of the block's mining reward beneficiary. mixHashstring 256-bit hash as a hexadecimal string. noncestring Proof-of-work hash, null if pending. numberstring Block number as a hexadecimal, null if pending. parentHashstring Hash of the parent block. receiptsRootstring Root of the block's receipts trie. sha3Unclesstring SHA3 hash of the block's uncles data. sizestring Size of the block in bytes, as a hexadecimal integer. stateRootstring Root of the block's final state trie. timestampstring UNIX timestamp of the block's collation. totalDifficultystring Total difficulty of the blockchain up to this block, in hexadecimal. transactionsarray List of transaction objects; refer to eth\_getTransactionByHash for details. transactionsRootstring Root of the block's transaction trie. unclesarray List of uncle block hashes. [Blocks info](https://drpc.org/docs/base-api/blocksinfo "Blocks info") [eth\_getBlockTransactionCountByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByHash "eth_getBlockTransactionCountByHash") --- # eth_getBlockByHash - Base eth\_getBlockByHash - Base ========================== eth\_getBlockByHash. Retrieve full block details using the block hash --------------------------------------------------------------------- eth\_getBlockByHash - base \[Value: 20CU\] Retrieves information about a block by its hash, providing details about the block and its transactions ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve block details using specific block hash * Verify block information for blockchain analysis * Analyze transactions within a specific block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid block hash input * Node must be synchronized with the blockchain * Accurate block hash needed for precise results ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{ "method":"eth_getBlockByHash", "params":["0x3f07a9c83155594c000642e7d60e8a8a00038d03e9849171a05ed0e2d47acbb3",false], "id":1, "jsonrpc":"2.0" }' ' { "jsonrpc": "2.0", "id": 0, "result": { "number": "0xfd2ff7", "hash": "0x7de9c923b2eab68a6a750fbe321638387911e9d02bda4671fa89e38999adbab1", "transactions": [\ "0x5ef7a16854a865e9b23ddc20162bd5de95f2d00bd8049e19bafe54b1faf83dbe",\ "0x2375160fcf98d944393f3ed5f32e592cde0744f8bae4e067ead362cbf0e30600",\ "0x15e24a6116a6ab83318755bcf24b61ab893150fab720d930867510ae936ee94a",\ "0x61be6237d1b6a4bd8e85f90a11370c9e9b88b5befa0fe8e061eb637e03eb3283",\ "0xb8a056bfb2bebb7f5aa3ba3190f9cc3e541500cfcc2353323988c2d3f03b545e",\ "0xb48cf97147cf598503c65c56d1b24360f2fd5907cf7bd059046c0cf1d2c32d50",\ "0x3f89662ca3eed8756350b5fd371a905eca77ac7847c7a7e4d57d0ed574232095",\ "0x86aa75ded10e74f555f92b36a910b0a8b89dbf7031a8547455f8a4fc8bdbb959",\ "0x0434360c5d00b6d9f035c3dc46a6c6b244f9d73c5204469afd4d07aa06d6e05e",\ "0x98c4bee5092d0515145b989fe05646462012f75887935a411b87834a9d1badd0",\ "0x1b9e55da3b0895d0d3d38433cb1aab0137010781407c5ce684a1ea2433255c8f",\ "0x9a883c8f1cddc0b157873996b9d93ea992516fcd08575bff575866d437ade261",\ "0xbd4ba4b061241e2c832c9c3f8dd8840b669edd904a9d7f469fc5696c75097d2f",\ "0xac2a8770f6dff665c05656ab6c23c07f787dd67ed36baa186d45c0d2c5fc75a3",\ "0xb772449e118039fd1c23e5a5496458fc58eeb0dc86c23ddf73642080bfc9f396",\ "0xdb15e8d1547ac7236ed7651fc30d4ff9b84feef4c296f4a8e757a3fd94847390",\ "0xffc484ea4dc64bfa564e8385b037f9aa4e91336efb1e296a3f9a96f7b3e5d62c",\ "0x154a164ce1231f5bebb731000dc2ae71c7c7ed202b30edc555342cdbca95841b",\ "0x6b7cff7b01fa6f2b6733f22e990a47ee38c7881dee4570a81847b7c195bec1c5",\ "0xd60ac2787ab0763c2d3a1ba843abdea010693b9ab21943cd0cdf462babccfcc8",\ "0x5364376ab0bcd562e4855d7008fc8e51126a91d38e7675f88cef21ed67ce9782",\ "0x52c97ba1c217065b0d817a3fdb31ddf2388587110e11cbdd4040ce8e58ad5e75",\ "0x17b293e5bc0df7b70f223090b9db2efa34b930852a7880b676c258100347324f",\ "0xe9d761ae0868e85d9be233db83da7ff369054130405e284e324e29a3f1877fd8",\ "0xaedec65ecec35567d86198c019e3cedc21c9180709df5894036880a445a4d00d",\ "0x4c8384e5231553ae5dd1f3009e4f0b16ee0e66128b9aa64ec2140de2aff931bc",\ "0xb80c9c256c5999e0b19202fe9dd53f6ace46cc45b91e6c2b0232fba524c77694",\ "0xb0a594a39ca16a00713f6a69610e94b9109f72283bd5e9f5562df4c736a85e60",\ "0xdc8e6073e05fb9f07e8785c8fc024ad869fa12bbd3af139990c1c5b5d36fa148",\ "0x1132ba664b5e70d50d1d724665620ee5f8535e41dbfde257b3cef44bbb4d677f",\ "0x5e9c5e27f30f635bf323c4d8fa0cdc96af71157bad0e040bc15c304480eb978b",\ "0xecdb5eca4b543393d9556467ab83c62fd56772175d4260495c10ae05a3813b0c",\ "0xb99df146e291550db2ddfd757b912726be84e2ca2f8e52b87a3e297ff1c858f2",\ "0x07108cc985c5e8609cdd9b159205ac0120a53b6f50384a5ac38441e7e779544b",\ "0x2919b22b1d9cb9097ee8ffda4350bc4df300130ff9f772baf89a1b9fe324025d",\ "0x3151778fd2eeff55c0b0ce517c231451f192dabcf95d049273f5940f104aa683",\ "0xd38f7e032cb46e0d45d23d761a79b935b0e75bbf95a9f8b672435965be42d4f9",\ "0x89f551c80a4483b68d98bc5649b6864d6398e4aa3bb84b3663f788604f4cb50e",\ "0x5cb5e0185842f155ca0081e199c926d34e0ea04db4605aee95653f62969ef000",\ "0xac418446c571331b9b7d2e9f054188a5d5500b37c40ecbf1843915151e67c4fe",\ "0x8be7c1de80a2d6b35ce6436a6bade11f05cb1dbf18a0a4512bdb0a330ba77a4e",\ "0x0df92f3a8595bad77b8126892cbbd53a20a18ca8bd2cf6e2ef134eb057e6b946",\ "0xe825326abe360ce1ab0e578c60c265422155b2800cbdcadb5655013594027d05",\ "0xd8eb9ce3b054a93cb7d72c6838f52101d294a60033b5a5be6e3fc95e5e24b581",\ "0x8154296da735de7599c3e722abd1b8f59574c0c68d415e8336116eb0639f70e8",\ "0xb631f6fc4627801b5e27f25427ddc82a27e673e8846c6e52a1aeaa52fea5a70a",\ "0x583070021ecda366a2528df7f8997ef9d83970c774b86d620b8feb8540b15868",\ "0x62f56c791e641571ddba9fab307aedf9e5ac450b4dec6f7dce4ec2c84923f4ce",\ "0x2db22f4140a5efe5888a19b1f951b55fb63dc422cd1c96f7c8c46f9cbcd5c156",\ "0x86d0377c418dfac6b7b68b849516701f4a8970974624ba72307b1bbf55ea7d5f",\ "0xe2c41fea29efde93377413759752c90f06f5588611d93e1dac08da0ee7b21c1a",\ "0xde077c5db3b02fc112d1f1f4e0ddc0921b1877e67bacd7d70a836a6f53b1b7d2",\ "0x29629a3d613dd6001cf372d1b3b78bd282920f7ff841ababe47ed07185b20e78",\ "0xa0f920f890373e2eadbc62f416de85ad1c176020658f9acd01d606562433158e",\ "0x7c6cbad39fb53c8c5e9116c30ca4a4a8149c722b7f38d465f4229c51a1713b08",\ "0x63b5fc7dbaec3f5efeab83d65c65a0d16b04861494c882bbb1ab3acf914a2b4f",\ "0x936057a4ca0df9f68cc99b2946668e561ce20da17a6ce11fd650d53fff036387",\ "0x2e07d1f9ecff190dcc7fa26d01ac0c5fa52b491866f0d01e53f677957bafbebc",\ "0xf217c798876f724f7e717d97c5a7d4fac57f12835015954bd59505ccb2540651",\ "0xb948475e7a69fb3baff273bc3c0f82c06d8ffee27b9257dd5af7315c6e06fb9d",\ "0xe66b96af88fa9ebf776e0d76396c232085eec6a87c31d1d3c73cd88382acc233",\ "0x1a092224f2bc78542e03e2109942f77b6505be901c88b59301d84c187f474869",\ "0x616ce7c137dd42e8d74b1a71d1c3f710d77ee476b64630af9aa578040c673fc6",\ "0xfa3a71ead49f7d33f90c688c65eae3b4c97ef7c2939bad9ef9542c90d8a520ab",\ "0xcd2c66955a34adf03f9f2ab61e25a23df8f46d32cb191eff0aff0b130b3e8f3a",\ "0xc8dc0e621967852290004d1a0100119e9ad07f991b9ac27a495d73ef6d5ec362",\ "0x51b0df9351c492797a7ecd45a83e23db8edf2d9af99f7a8eb55b07bb6265e130",\ "0xf4da6d54bfb330286fd171a6df91dcf49b3b7e6a8e1f5c97c24d6de93b1f8849",\ "0x773782c7fa4c3c2068ef52c1526eb35318eb1ba80703dd6049a0c4c1b8c1ec52",\ "0x43aac532b488f7b5cf4d5432096b755f9fd41edc48b74d9948281ec4d687f9d7",\ "0x9d5eed4c7d165d2966d08f840cc73083931875ceece94f4f99503671507ca8f6",\ "0x27f0b266d0250780f2b4a69ab56d95e670acbad6a4cce55ce6b98e7ffa7098a8",\ "0xbf10d5592f072d8cafc471d569acddbbb5bae414096dbb283746f3520bd7a705",\ "0xadf5125e98d3a89c1a96c002ac0d21e54dfa3c5bd28444310c7e55ba7968fb1b",\ "0x3edd96fbc8efc46fdd83759a2236c220c880662e8c9ebd6ba98b5591d5f99540",\ "0xdd591f37dd661a56890b45af77cafe5599ae501c8258dc0ba25b1150a540b894",\ "0x8f269da6d10c62163678543a937559fcd0d821a61c1a2e50317943a630e794f7",\ "0xcf02af1b4ce278ea7e60de23440249b1370e36452cc5cc5d5b342e05016ab7a8",\ "0x321e27efec157799993f1b423b45852fea954ce690944d8a1cf10f3e9ec6da1a",\ "0xf0e4e7302e960a982661396a789b03447d9090ef0fda2baf25a7f4cc64291680",\ "0x630290112c2e23f7237255bf1d2f00680338f8ed27c58a231cde8912c9622963",\ "0x537e8fb57be0dbdb18172085aa9a7d1fadbdc941c19e213c481d007984d2312b",\ "0x716a2b4d87f4f4905707e305fd48fdfec142ad9001edfe9055d0b92e3e4731be",\ "0x7985fd28ee75590ca17abcef39acfd7572ea533629d735fcbc553875e75dc279",\ "0x0b8ce62605de616b4259b3855132fefd4e54d8f8a5f7be2b8c413125841ffaa6",\ "0x34afe95fc45615578273e644e30542002ee67d63a14b00b17f8d693a1a819b1d",\ "0x822d5825c9d6af2d5052ea82443238a5e51b869fa9c44256b196bbf9c64a801b",\ "0xc088eae280ee3ee92dc27661e58955717052e41342addc7b85279d35a0d225dc",\ "0x8136d771e25f16821f4e917ea50714d09a1a95f8b7ec12db4ccb48494a153858",\ "0xe811d264c8327280434a8e08d210c1c8d4aeca0f1c7ee4e6059d6d0a80233bc6",\ "0x02ba41537fdfc4fa40a074da7ad3191c67978c6ecd96045a2f812bc98eb9a403",\ "0xc1199a03e472a7656c2f0554d2924c56cf85027d4bad6666fdf1a042555ad4d2",\ "0x67f47ed37a844e29d2a842e24893c1ec8cf4fecd580416e63c2fb729dce055af",\ "0x280c108993984f0f782ccf0f12492b9e0ba0fb86c47556d20e9541e2f201c6c8",\ "0x014be7f1b148508cdb6539b657ea545a683fcf5ff0b9c523b1272b9d840dadb4",\ "0xd0680f3ab906995e5aeba7bec4e44cf9e2da3d9ef5382d99075870e9fea22979",\ "0xef6332d1192e411a82792c0198dc45f4ad0091defa3028a2a8c299cbd43abddf",\ "0xcf5b9e45c19510125857c3e563b457ee62396a50f1af90136349281821fa6c90",\ "0xbddfb9d3f26389ada212e2336edb4ca73be183830231376727c2cb40894b5b3a",\ "0x8780abcbfae42f2468acd4e306b02cb6b8043bdc7c2db0f8e68f873048e59abb",\ "0x3fea86657164c98324299cfa8bc97436af531e42dfa565b9d6992f460a6f62dd",\ "0x0c1c38c6a6a9e9b9fd41221c1f1d366f310d8da55366daf6eeb6ff529c4266fd",\ "0x70fc2bdb1a88ad5f2d3923db4ce669ebc4d774e4f09796627133626f7549cc6f",\ "0xe5a82deb1d7a8fc0a7b728717a6cf381c33a5278c27454be2738c7b6da50caed",\ "0x796aff156d6b31441085167f752cecf49573f857e7cdd2510ec75b0625e7f3d7",\ "0x39c0c61bab408118c34f1779933541ee1bfd77d4bc966209c05c22d9c625db37",\ "0xdba9172649edbddddd527c8e4753dc901d81ddfd9ac02e4f2ab39f54c42be155",\ "0x4b20c0e431121577038f900312a1ff4fb7db82693bef615432a3272754efa7b5",\ "0x7af243172a64fb168f9e0a7ec7f9689fad37a33ef2a9ab38f2d99dfc198aa65c",\ "0x93a1f449d2ebb401aac875bd7a6d33333d51039d6b7ff414be89aa1413b8f832",\ "0xfa594ef4d1fbde2f95f5cdcb3586c602d773049c507aaba046d38544200abfc9",\ "0xfa9aa04c374286648efe0f4e8ecccebeda80458bba5e650f830e23e6c5469e6f",\ "0x2b2fd61a6fc1798e6185fbd7e3ccf5e4709cac2e4490d10ccae90f4a7af89a59",\ "0x9eb284d3ddef9fb8b253d5739ecb61f37791309e48b201b83c39c30d36301245",\ "0xa4ad2607dd621a05c6e834e9ddffa93b753a6f8acf77bef929a7d560eb5c56ba",\ "0xedb71f387dcbf24a4a0d3fbfe7d83094d163d5f2d4d3e0be7791a317730c5a69",\ "0xcf8263887b2651a5e5c54a82e3f03845ad5f3637f94004e740af3c334341789d",\ "0x173819e7fc06c601c91600e72db71bf9b0e668f16d6ce0e3fa341ab22d6275d2",\ "0x067d71bd57d83d4ed7ca13193e2c5c6c74aefe2fae0cbc852cfdc009fc2793e3",\ "0x4dc5f11b6b82d0aa00d9efde578b6c465f5954b1e93428d9b0b98079108b1a8c",\ "0xffc890c290afd0ba7b8bd64254a0ab9465e9f0eb20c90572d12909104735af35",\ "0xec3d4f252a9c0031a34443b50e7bdeb9cc1541f22568c2f2009682adf2d8c8c9",\ "0xe6ccd2ef8339ae6c9f875dc22154b5657f9748cb22add25938c6b5080ff7c8f5",\ "0x7d7491d17f005c96c2fc27fea3dc45cc384c2d2e7db59bc2be129b67aae12640",\ "0x0c5062dc7084f0cf21616f654d2ec4e595c4da36bb3694b505242cec1076291c",\ "0x4d3dae949cfbefcffa7904f7b25eaa837692ac51df20919f2219da40e7db4087",\ "0x46838953c2b6136eafcbe3db9bf4a852e61c400a57f5e8780e5ff54f450f1baf",\ "0x09c0e6d2f37ec85a3cded264c03c50e37b326916314ed27e1adfb05a0c8fbf52",\ "0xb0c1c427d35702e39e63f516ba2e1aa9611afbf39d98e95aa28d81878090ca9c",\ "0x81f0179706708dfa0a021b54f073847a6bfdc51806f3da34df6bf03b77065279",\ "0x203a0a172e3fb98bac947f615c6ed23b662a9a280572da370391c8d12602874d",\ "0x1adbcb3c83dc4c2121ca2f0932f8ccbb7b02f50ffe324eb6fc1799a3bd132cac",\ "0x902f78c49a953da4065ba81443a6041934a7b82909b9aa6f80664fc0f6d3747b",\ "0x4c090e5dd25fcdbb18592e0e36ab284a8262c145df8b344d22fb1542789f928a",\ "0x0e60f81949852644b55fc71c64cb38ba34b8063753651fb293bbcee2cbb7de18",\ "0x48657c3fbd3651dd558617ec3dbeb2721db645d6acad754b72defc0e0dba2e71",\ "0xa65e2c4cd74da914034e865a3872008b8bc003dc2371f85db996e3345e9a8d4f",\ "0xe9f0d14895c2cdfaef85d81efba9cb856a9686026580e173dd8a77fd93e668a9",\ "0x335dabe9cf4743219f7e46cf56fb93b2bc391aaf3490244757f95baa0f5cb3ee",\ "0x53184e8914333ccfa5cbd79104381dc8b0970425b37647d933f6fded0cd20512",\ "0xdcb8c4b03eeb541fcf62b27339bfd7887a9072fdad2604fe8c201e42396a8c1c",\ "0x92cc5b4c23c52ccb7e13e696131140f8123e3e084042cddbd4589269f7bcad73",\ "0x8c51a81f08f88a9a4fead2fa44b4d2d01afd8df88ae5b9aed48836109998977e",\ "0xa3cda8c96c9d6744b4e41478cfeed3b1ea8e59d0e02925d81796db222ed0322d",\ "0x5b766fe54639a3f44fef92a5d2a1543fdd64da9417dd0ead97fa59ac19b4271d",\ "0x8e8135278dd8bff8bc00ab5060e8f99d2fd7c6c3913cedc74d0599babb793a86",\ "0x92d703b46d8a631b24f9407ea840cb24909f3f51c2e3352d848a4a7f1c2aea0b",\ "0x10c5f8dcaf6539dcceeaa40cd1f2a179fe9107f17d7bd26b7da8c24175a780a6",\ "0x347d5f17889d8f8cf2653791bfb55808df04b74450481e96b9221ba8933394ca",\ "0xc258a2fa2fbcb770b09f7cc67da2844b7d4cfbfe66e22fc16675f8068ac59570",\ "0x04cded61939429fc52f73b47e364920e56d8e884035dfb3f1cc2bd299150c577",\ "0x8c898b5ca0fd1f50a1ec9b98137031c55db88ec2ce63fdcd146f8cfe13c67905",\ "0xaaeae1a476621d0c759c42fbe054b064820b6d5474118a25cd033ccaebbd66be"\ ], "difficulty": "0x0", "extraData": "0x506f776572656420627920626c6f58726f757465", "gasLimit": "0x1c9c380", "gasUsed": "0x1c92f0c", "logsBloom": "0x02b429414c945297cb070e118446c367d7330231d91882e75081760002280108d0dd65740001018a325e8408692c0a1e42120382294820010e64170820b681c4851806b10105e33c201efcb885b1257ebd1129bb996288090814848010482a3913104120cb0a714c4405042129084861c37e28858c808440474084ba810cc89c905a2a063143730f20591321610e0a43a90534dea25050fc9920a870293810a88f21bf908858c51c8062c8f271168111ca535e808ed18ca36c023082d682d8e4e64181270670302a4924f8435805521a005e20e60dc89014af2a886e5de56b76dc1fa3ea3943a220021c300747414c1009ba48220ad81c4082859290206115c1", "miner": "0x388c818ca8b9251b393131c08a736a67ccb19297", "mixHash": "0x844a8382c76346a82e69c8f81a0fdb10f9a6c57a5de95df42857184593e675be", "nonce": "0x0000000000000000", "parentHash": "0x6f207bcfe8afb73f9b21fc8bb2ad36724d4f46aedf63bc6f0341002688493c99", "receiptsRoot": "0x36bc53a918e7a802324af5f76380536caaeb52c3a6d6c0ab6a73ab7d1643a773", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad312451b948a7413f0a142fd40d49347", "size": "0x6520", "stateRoot": "0x51b6d009dbd487d279a2efdc3385ef38cec4124e5a700da200d01062fad3bb16", "timestamp": "0x63e536bb", "totalDifficulty": "0xc70d815d562d3cfa955", "transactionsRoot": "0xb131c71d64da16a3ac789decc230fe6d565571b8c6d89991582e338711bee223", "uncles": [], "baseFeePerGas": "0x120e61b4c1" } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array hashstring The hash (32 bytes) of the block. transaction\_detail\_flagboolean It returns the full transaction objects when it is true otherwise it returns only the hashes of the transactions. Response -------- 200 The block object if found, or null if no block is found. Response params --------------- object idinteger jsonrpcstring resultobject A block object with the following fields, or null when no block was found. object noncestring 8 Bytes - hash of the generated proof-of-work. null when its pending block. hashstring 32 Bytes - hash of the block. null when its pending block. baseFeePerGasstring the base fee, in wei, that is charged for each unit of gas used, during the execution of the given block, encoded as a hexadecimal. numberstring the block number. null when its pending block. parentHashstring 32 Bytes - hash of the parent block. sha3Unclesstring 32 Bytes - SHA3 of the uncles data in the block. logsBloomstring 256 Bytes - the bloom filter for the logs of the block. null when its pending block. transactionsRootstring 32 Bytes - the root of the transaction trie of the block. stateRootstring 32 Bytes - the root of the final state trie of the block. receiptsRootstring 32 Bytes - the root of the receipts trie of the block. minerstring 20 Bytes - the address of the beneficiary to whom the mining rewards were given. difficultystring Integer of the difficulty for this block. totalDifficultystring Integer of the total difficulty of the chain until this block. extraDatastring The "extra data" field of this block. sizestring Integer the size of this block in bytes. gasLimitstring The maximum gas allowed in this block. gasUsedstring The total used gas by all transactions in this block. timestampstring The unix timestamp for when the block was collated. transactionsarray\_of\_strings Array of transaction objects, or 32 Bytes transaction hashes depending on the last given parameter. unclesarray\_of\_strings Array of uncle hashes. [eth\_getBlockByHash#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHashfull "eth_getBlockByHash#full") [eth\_newBlockFilter](https://drpc.org/docs/base-api/blocksinfo/eth_newBlockFilter "eth_newBlockFilter") --- # eth_getBlockByNumber#full - Base eth\_getBlockByNumberfull - Base ================================ eth\_getBlockByNumberfull. Retrieves a block by its number, offering detailed information about the block's transactions ------------------------------------------------------------------------------------------------------------------------ eth\_getBlockByNumber#full - base \[Value: 20CU\] Retrieves detailed information about a specific block by its number, including comprehensive details for all transactions within that block ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve full block details for forensic analysis * Get all transactions within a specific block * Monitor blockchain activity for a specific block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires accurate block number or tag * Full transaction data increases response size * Node must be fully synchronized with network ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_getBlockByNumber", "params": [\ "finalized",\ true\ ] } ' { "jsonrpc": "2.0", "id": 1, "result": { "difficulty": "0x4ea3f27bc", "extraData": "0x65746865726d696e652d6575312d32", "gasLimit": "0x47e7c4", "gasUsed": "0x6384", "hash": "0x5bad55fbd7e0f20eac95f45f55f997216de10aaf176314c236b0c3c93c5d1f17", "logsBloom": "0x0", "miner": "0x52bc44d5378309ee2abf1539bf71de1b7d7be3b5", "mixHash": "0x75b1f48901cf1d37ad43c2b29eafeb1f3ae5cf5c5d55b1b3be6b2be4a25d6ec6", "nonce": "0x539bd4979b50162d", "number": "0x1b4", "parentHash": "0x8e3d7ea52a14b9d773c37d67e2a4b8e6a12573c3d60a1cd1a58455d3008d1c9d", "receiptsRoot": "0xbcdfc35b86bedf72e283106f1f9a03c8d99a6de2b1cba6b01ff3e78e924e05c8", "sha3Uncles": "0x1dcc4de8dec75d7aab85b567b6ccd41ad0d4e8eeb004cfe8dec7d1f3469a7f5f", "size": "0x220", "stateRoot": "0x7d00dcd0e0d14e6f7d9dc57116d0e5f76b0abdc716a1d7e6b4df87eae7795b7a", "timestamp": "0x55ba467c", "totalDifficulty": "0x78ed983323d", "transactions": [\ {\ "blockHash": "0x5bad55fbd7e0f20eac95f45f55f997216de10aaf176314c236b0c3c93c5d1f17",\ "blockNumber": "0x1b4",\ "from": "0x5cb2045c43d14a5f5e5f1ea60c5b02e0a93032cf",\ "gas": "0x7d3c",\ "gasPrice": "0xba43b7400",\ "hash": "0x1a85165ac88f73b7a290104f614cf08d8b4f3e193f41f209c3716d9c237139f5",\ "input": "0x",\ "nonce": "0x15",\ "to": "0x3535353535353535353535353535353535353535",\ "transactionIndex": "0x0",\ "value": "0x1bc16d674ec80000",\ "v": "0x1c",\ "r": "0x5e1d3a76fbf824220e68236e2d51cb98f349a5a6e4f43e3f471f5d0421d4aee2",\ "s": "0x5e1d3a76fbf824220e68236e2d51cb98f349a5a6e4f43e3f471f5d0421d4aee2"\ }\ ], "transactionsRoot": "0x56e81f171bcc55a6ff8345e692c0f86e5b48e01b996cadc001622fb5e363b421", "uncles": [] } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array blockNumberstring The block number or tag ("latest", "earliest", "pending") at which to get the balance. * latest \[default\] \- The most recent block in the blockchain (default). * safe \- A block that has been validated by the beacon chain. * finalized \- a block confirmed by over two-thirds of validators * earliest \- A block approved by more than two-thirds of the validators. * pending \- Transactions that have been broadcast but not yet included in a block. transaction\_detail\_flagboolean Must be true to retrieve full transaction details. Response -------- 200 Detailed block object if found, or null if no block is found. Response params --------------- object baseFeePerGasstring Base fee per gas in hexadecimal. difficultyinteger Block difficulty as an integer (hexadecimal). extraDatastring Extra data field of the block. gasLimitstring Maximum gas allowed in the block (hexadecimal string). gasUsedstring Total gas used by all transactions (hexadecimal string). hashstring Block hash (null if pending). logsBloomstring Bloom filter for logs (null if pending). minerstring Address of the mining reward recipient. mixHashstring 256-bit hash as a hexadecimal string. noncestring Number of prior transactions from the sender. numberstring The block number of the requested block encoded as hexadecimal. parentHashstring Parent block hash. receiptsRootstring Root of the receipts trie. sha3Unclesstring SHA3 hash of uncles data. sizestring Block size in bytes. stateRootstring Root of the final state trie. timestampstring UNIX timestamp of the block's creation. totalDifficultystring Total difficulty of the chain up to this block. transactionsarray Array of transaction objects, including: object blockHashstring Hash of the block containing the transaction. blockNumberstring Block number containing the transaction. transactionIndexstring Position of the transaction in the block (null if pending) noncestring Number of prior transactions from the sender. hashstring 32 Bytes - hash of the transaction. fromstring Transaction hash. gasstring Gas provided by the sender. gasPricestring Gas price provided by the sender in wei. inputstring Data sent with the transaction. rstring ECDSA signature r. sstring ECDSA signature r. tostring Receiver's address (null if contract creation). vstring ECDSA recovery id. valuestring Value transferred in Wei. transactionsRootstring The root of the transaction trie of the block unclesarray Array of uncle block hashes [eth\_blockNumber](https://drpc.org/docs/base-api/blocksinfo/eth_blockNumber "eth_blockNumber") [eth\_getBlockByHash#full](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHashfull "eth_getBlockByHash#full") --- # eth_getBlockTransactionCountByNumber - Base eth\_getBlockTransactionCountByNumber - Base ============================================ eth\_getBlockTransactionCountByNumber. Retrieve the number of transactions in a block by its number --------------------------------------------------------------------------------------------------- eth\_getBlockTransactionCountByNumber - base \[Value: 20CU\] Retrieves the number of transactions in a block specified by its block number ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve transaction count by block number * Validate transaction density * Analyze blockchain activity trends ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid and specific block number * Dependent on node synchronization * Limited by network latency ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getBlockTransactionCountByNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": "0xfe" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings blockNumberstring The block number or tag ("latest", "earliest", "pending") at which to get the balance. * latest \[default\] \- The most recent block in the blockchain (default). * safe \- A block that has been validated by the beacon chain. * finalized \- a block confirmed by over two-thirds of validators * earliest \- A block approved by more than two-thirds of the validators. * pending \- Transactions that have been broadcast but not yet included in a block. Response -------- 200 The number of transactions in the specified block. Response params --------------- object idinteger jsonrpcstring resultstring [eth\_getBlockTransactionCountByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByHash "eth_getBlockTransactionCountByHash") [eth\_blockNumber](https://drpc.org/docs/base-api/blocksinfo/eth_blockNumber "eth_blockNumber") --- # net_peerCount - Base net\_peerCount - Base ===================== net\_peerCount. Retrieve the number of peers currently connected to the node ---------------------------------------------------------------------------- net\_peerCount - base \[Value: 20CU\] Retrieves the number of peers currently connected to the client ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve a list of managed accounts * Verify available accounts on the connected node * Populate account dropdown menus ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires node with account management capability * Risk of exposing addresses * Depends on node's current account configuration ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"net_peerCount","params":[],"id":67}' ' { "jsonrpc": "2.0", "id": 67, "result": "0x8" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 The number of peers connected to the client, returned as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultstring [net\_version](https://drpc.org/docs/base-api/chaininfo/net_version "net_version") [eth\_syncing](https://drpc.org/docs/base-api/chaininfo/eth_syncing "eth_syncing") --- # Base debug and trace info | dRPC Debug and trace[#](https://drpc.org/docs/base-api/debugandtrace#debug-and-trace) --------------------------------------------------------------------------------- Available only on the paid tier. These methods are useful for analyzing execution flows and debugging. [debug\_traceBlockByHash](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByHash) : Traces the execution of all transactions in a block by its hash. [debug\_traceBlockByNumber](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByNumber) : Traces the execution of all transactions in a block by its number. [debug\_traceTransaction](https://drpc.org/docs/base-api/debugandtrace/debug_traceTransaction) : Provides detailed trace information for a specific transaction. [debug\_traceCall](https://drpc.org/docs/base-api/debugandtrace/debug_traceCall) : Traces a specific call without altering the blockchain state. These methods provide advanced debugging capabilities on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_getTransactionByBlockNumberAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockNumberAndIndex "eth_getTransactionByBlockNumberAndIndex") [debug\_traceBlockByNumber](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByNumber "debug_traceBlockByNumber") --- # Ethereum and Base: Differences Ethereum and Base: Differences ============================== Ethereum and Base are both platforms designed to support decentralized applications (dApps) and smart contracts, yet they differ in several key aspects. Layer Classification[#](https://drpc.org/docs/base-api/ethereumbasedifference#layer-classification) ---------------------------------------------------------------------------------------------------- Ethereum: Ethereum operates as a Layer 1 (L1) blockchain, serving as the foundational layer where all transactions are processed and settled. Base: Base functions as a Layer 2 (L2) solution built on top of Ethereum. It leverages Ethereum's security while aiming to enhance scalability and reduce transaction costs. Consensus Mechanisms[#](https://drpc.org/docs/base-api/ethereumbasedifference#consensus-mechanisms) ---------------------------------------------------------------------------------------------------- Ethereum: Following its transition to Proof of Stake (PoS) in September 2022, Ethereum relies on validators who stake ETH to secure the network and validate transactions. Base: As an L2 solution, Base inherits Ethereum's security model and does not implement its own consensus mechanism. Instead, it processes transactions off-chain and periodically submits them to Ethereum for finalization. Transaction Speed and Fees[#](https://drpc.org/docs/base-api/ethereumbasedifference#transaction-speed-and-fees) ---------------------------------------------------------------------------------------------------------------- Ethereum: Ethereum's transaction throughput is approximately 15 transactions per second (TPS), which can lead to network congestion and high gas fees during peak periods. Base: By processing transactions off-chain and bundling them before submitting to Ethereum, Base achieves higher throughput and significantly lower fees, making it more cost-effective for users. Ecosystem and Adoption[#](https://drpc.org/docs/base-api/ethereumbasedifference#ecosystem-and-adoption) -------------------------------------------------------------------------------------------------------- Ethereum: As a pioneer in smart contracts, Ethereum boasts a vast ecosystem with a robust developer community, numerous dApps, and extensive support for decentralized finance (DeFi) and non-fungible tokens (NFTs). Base: Launched by Coinbase, Base is relatively new but has rapidly gained traction, especially in DeFi. Its compatibility with Ethereum allows developers to migrate existing applications seamlessly. Smart Contract Compatibility[#](https://drpc.org/docs/base-api/ethereumbasedifference#smart-contract-compatibility) -------------------------------------------------------------------------------------------------------------------- Ethereum: Ethereum utilizes the Solidity programming language for smart contract development, supported by a large pool of developers and extensive resources. Base: Base maintains full compatibility with Ethereum's Virtual Machine (EVM), enabling developers to deploy existing Ethereum smart contracts without modification. Governance[#](https://drpc.org/docs/base-api/ethereumbasedifference#governance) -------------------------------------------------------------------------------- Ethereum: Ethereum's governance is community-driven, with decisions made through Ethereum Improvement Proposals (EIPs) that require broad consensus among stakeholders. Base: Currently, Base's governance is more centralized, with Coinbase overseeing its development. However, there are plans to progressively decentralize its governance structure over time. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [Base API](https://drpc.org/docs/base-api "Base API") [Blocks info](https://drpc.org/docs/base-api/blocksinfo "Blocks info") --- # net_listening - Base net\_listening - Base ===================== net\_listening. Checks if the client is actively listening for network connections ---------------------------------------------------------------------------------- net\_listening - base \[Value: 20CU\] Checks if the client is actively listening for network connections ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Broadcast a signed transaction to the network * Validate and execute a pre-signed transaction * Submit transaction for inclusion in the next block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid signed transaction data * Network connectivity must be active and stable * Node must support raw transaction broadcasting ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "net_listening" } ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 RReturns true if the client is listening for network connections, false otherwise. Response params --------------- object idinteger jsonrpcstring resultboolean [eth\_chainId](https://drpc.org/docs/base-api/chaininfo/eth_chainId "eth_chainId") [net\_version](https://drpc.org/docs/base-api/chaininfo/net_version "net_version") --- # eth_newBlockFilter - Base eth\_newBlockFilter - Base ========================== eth\_newBlockFilter. Create a filter to receive notifications for new blocks ---------------------------------------------------------------------------- eth\_newBlockFilter - base \[Value: 20CU\] Creates a filter to notify when new blocks are added to the blockchain ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Monitor real-time new block creation on the blockchain * Track newly mined blocks for network synchronization * Notify when new blocks are added to the chain ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support block filter creation * Accurate response depends on node synchronization ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_newBlockFilter" } ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 The ID of the newly created filter, represented as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultstring [eth\_getBlockByHash](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByHash "eth_getBlockByHash") [Transactions info](https://drpc.org/docs/base-api/transactionsinfo "Transactions info") --- # Base transactions info | dRPC Event logs[#](https://drpc.org/docs/base-api/eventlogs#event-logs) ------------------------------------------------------------------- Allows the filtering and retrieval of event logs generated by smart contracts. [eth\_getLogs](https://drpc.org/docs/base-api/eventlogs/eth_getLogs) : Available only on paid tier. Retrieves event logs based on specified filter criteria. [eth\_newFilter](https://drpc.org/docs/base-api/eventlogs/eth_newFilter) : Available only on paid tier. Creates a new filter to monitor logs. [eth\_getFilterChanges](https://drpc.org/docs/base-api/eventlogs/eth_getFilterChanges) : Available only on paid tier. Retrieves changes for a filter since its last check. [eth\_uninstallFilter](https://drpc.org/docs/base-api/eventlogs/eth_uninstallFilter) : Uninstalls a previously created filter. [eth\_getFilterLogs](https://drpc.org/docs/base-api/eventlogs/eth_getFilterLogs) : Available only on paid tier. Fetches logs matching a specific filter. These methods help track and monitor contract events on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_getStorageAt](https://drpc.org/docs/base-api/accountinfo/eth_getStorageAt "eth_getStorageAt") [eth\_getLogs](https://drpc.org/docs/base-api/eventlogs/eth_getLogs "eth_getLogs") --- # Chain chain info | dRPC Chain info[#](https://drpc.org/docs/base-api/chaininfo#chain-info) ------------------------------------------------------------------- Provides essential data about the state and performance of the Base network. [eth\_chainId](https://drpc.org/docs/base-api/chaininfo/eth_chainId) : Returns the chain ID of the network. [net\_listening](https://drpc.org/docs/base-api/chaininfo/net_listening) : Checks if the client is actively listening for network connections. [net\_version](https://drpc.org/docs/base-api/chaininfo/net_version) : Returns the current network version. [net\_peerCount](https://drpc.org/docs/base-api/chaininfo/net_peerCount) : Retrieves the number of active peers connected to the node. [eth\_syncing](https://drpc.org/docs/base-api/chaininfo/eth_syncing) : Indicates the synchronization status of the node. These methods are crucial for monitoring the operational status of the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_getFilterLogs](https://drpc.org/docs/base-api/eventlogs/eth_getFilterLogs "eth_getFilterLogs") [eth\_chainId](https://drpc.org/docs/base-api/chaininfo/eth_chainId "eth_chainId") --- # eth_chainId - Base eth\_chainId - Base =================== eth\_chainId. Retrieve the unique chain ID of the current network ----------------------------------------------------------------- eth\_chainId - base \[Value: 20CU\] Provides the current network or chain ID, essential for signing replay-protected transactions as defined in EIP-155 ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Verify chain ID before signing new transactions * Ensure transactions are compatible with the head block * Identify the chain for network-specific operations ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Chain ID must correspond to current head block * Client must handle missing chain ID with errors * Prefer eth\_chainId over net\_version for reliability ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_chainId" } ' { "jsonrpc": "2.0", "id": 1, "result": "0x1" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 Returns the current chain ID as an integer. Response params --------------- object idinteger jsonrpcstring resultstring Hexadecimal string that represents the current chain or network ID. [Chain info](https://drpc.org/docs/base-api/chaininfo "Chain info") [net\_listening](https://drpc.org/docs/base-api/chaininfo/net_listening "net_listening") --- # Base gas estimation info | dRPC Gas estimation[#](https://drpc.org/docs/base-api/gasestimation#gas-estimation) ------------------------------------------------------------------------------- Provides tools to estimate gas fees and optimize transaction costs. [eth\_estimateGas](https://drpc.org/docs/base-api/gasestimation/eth_estimateGas) : Estimates the gas required for a transaction. [eth\_gasPrice](https://drpc.org/docs/base-api/gasestimation/eth_gasPrice) : Returns the current gas price on the network. [eth\_maxPriorityFeePerGas](https://drpc.org/docs/base-api/gasestimation/eth_maxPriorityFeePerGas) : Retrieves the maximum priority fee per gas unit. These methods help optimize transaction costs by estimating the necessary gas fees on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_sendRawTransaction](https://drpc.org/docs/base-api/executingtransactions/eth_sendRawTransaction "eth_sendRawTransaction") [eth\_estimateGas](https://drpc.org/docs/base-api/gasestimation/eth_estimateGas "eth_estimateGas") --- # Base executing transactions info | dRPC Executing transactions[#](https://drpc.org/docs/base-api/executingtransactions#executing-transactions) ------------------------------------------------------------------------------------------------------- These methods are essential for interacting with smart contracts and sending transactions. [eth\_call](https://drpc.org/docs/base-api/executingtransactions/eth_call) : Executes a read-only call to a smart contract without making any state changes. [eth\_sendRawTransaction](https://drpc.org/docs/base-api/executingtransactions/eth_sendRawTransaction) : Sends a raw, signed transaction to the Avalanche blockchain for execution. These methods are critical for performing operations and smart contract interactions on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_syncing](https://drpc.org/docs/base-api/chaininfo/eth_syncing "eth_syncing") [eth\_call](https://drpc.org/docs/base-api/executingtransactions/eth_call "eth_call") --- # eth_call - Base eth\_call - Base ================ eth\_call. Execute a transaction call without broadcasting it ------------------------------------------------------------- eth\_call - base \[Value: 20CU\] Performs a message call instantly without recording it as a transaction on the blockchain ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Simulate contract function execution without blockchain state change * Retrieve return values from smart contract functions * Estimate gas usage for contract function calls ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Starting from Geth 1.9.13, eth\_call checks the sender's balance to ensure sufficient gas for execution if either: The gas\_price parameter is populated, the contract function modifies the blockchain state. * In these cases, the from address must have enough gas as ifexecuting a write transaction, even though eth\_call itself doesn't consume gas. * dRPC has a gas cap of 600 million (600M) for eth\_call. If your call requires more gas than this limit, the request will fail. If you need a higher gas limit, please contact our support team. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ --request POST \ --header "Content-Type: application/json" \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_call", "params": [\ "0x10F558C",\ {\ "from": "0x4B275BDea1cA622256ebb8B15B51861b52703d16",\ "to": "0xa62894D5196bC44e4C3978400Ad07E7b30352372",\ "gas": "0x13880",\ "gasPrice": "0x4B3ECF6D4",\ "data": "0xa9059cbb0000000000000000000000007422172afc6ea4da9c011e87b7cb002d55b754430000000000000000000000000000000000000000000000000c7d713b0e3f3600"\ },\ {"0x4B275BDea1cA622256ebb8B15B51861b52703d16":{\ "balance": "0x277BFC44534B0000"\ }}\ ] } ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of objects array of objects blockNumberstring (optional) Block number as an integer, or string * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. transactionobject The transaction call object which contains the following fields. array of objects fromstring (optional) Sender's address. tostring Recipient's address. gasinteger (optional) Gas limit for the transaction. gasPriceinteger (optional) Gas price in wei. valueinteger (optional) Amount of wei to send. datastring (optional) Encoded method signature and parameters. State Overrideobject Tenables temporary modifications to a contract’s state for a specific call without altering the actual contract. Each address maps to an object containing: array of objects balancestring Specifies a temporary balance for the account before executing the call. noncestring Sets a temporary nonce for the account before executing the call. codestring (Injects temporary EVM bytecode into the account before executing the call. stateobject Replaces all storage slots of the account with specified key-value pairs before executing the call. stateDiffinteger Modifies specific storage slots in the account while keeping the rest unchanged before executing the call. Response -------- 200 The result of the call. Response params --------------- object idinteger jsonrpcstring resultstring [Executing transactions](https://drpc.org/docs/base-api/executingtransactions "Executing transactions") [eth\_sendRawTransaction](https://drpc.org/docs/base-api/executingtransactions/eth_sendRawTransaction "eth_sendRawTransaction") --- # eth_getBlockTransactionCountByHash - Base eth\_getBlockTransactionCountByHash - Base ========================================== eth\_getBlockTransactionCountByHash. Retrieve the number of transactions in a block ----------------------------------------------------------------------------------- eth\_getBlockTransactionCountByHash - base \[Value: 20CU\] Is essential for analyzing block activity and transaction volume, providing a quick count of transactions within a given block ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Determine the number of transactions in a specific block * Verify block transaction volume * Audit blockchain transaction activity ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Limited to accessible blockchain data * Subject to node response time * Requires up-to-date blockchain synchronization ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getBlockTransactionCountByHash","params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array hashstring The hash of the block for which the transaction count is to be retrieved. Response -------- 200 The number of transactions present in the specified block. Response params --------------- object idinteger jsonrpcstring resultstring [eth\_getBlockByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockByNumber "eth_getBlockByNumber") [eth\_getBlockTransactionCountByNumber](https://drpc.org/docs/base-api/blocksinfo/eth_getBlockTransactionCountByNumber "eth_getBlockTransactionCountByNumber") --- # net_version - Base net\_version - Base =================== net\_version. Retrieve the current network version -------------------------------------------------- net\_version - base \[Value: 20CU\] Retrieves the current network ID the client is connected to ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Determine network version for the node * Validate the connected network version * Check network ID for compatibility verification ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires network access to the node * Node must support net\_version method * Accurate response depends on node synchronization ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"net_version","params":[],"id":67}' ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 The network ID as a string, representing the specific network the client is connected to. Response params --------------- object idinteger jsonrpcstring resultstring [net\_listening](https://drpc.org/docs/base-api/chaininfo/net_listening "net_listening") [net\_peerCount](https://drpc.org/docs/base-api/chaininfo/net_peerCount "net_peerCount") --- # debug_traceBlockByNumber - Base debug\_traceBlockByNumber - Base ================================ debug\_traceBlockByNumber. Trace the execution of all transactions in a block by its number ------------------------------------------------------------------------------------------- debug\_traceBlockByNumber - base \[Value: 20CU\] The debug\_traceBlockByNumber method traces the execution of all transactions within a specified block, identified by its block number ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Analyze block's internal transactions for debugging purposes * Trace smart contract interactions within a specific block * Investigate gas usage for all transactions in block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support the debug\_traceBlockByNumber method * High computational cost for tracing complex blocks ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"debug_traceBlockByNumber","params":["0xccde12", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": { "type": "CALL", "from": "0x0000000000000000000000000000000000000000", "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567", "value": "0x0", "gas": "0x7fffffffffffadf7", "gasUsed": "0x0", "input": "0x", "output": "0x" } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array blockNumberstring Specifies the block number for fetching the transaction. tracerobject Supports callTracer and prestateTracer for detailed trace analysis. array tracerstring Default: callTracer tracerConfigobject array onlyTopCallboolean Response -------- 200 Array of block traces. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects Varies for callTracer and prestateTracer. object callTracerobject object fromstring Sender's address. tostring Receiver's address. valuestring Amount transferred in wei. gasstring Gas allocated for the call. inputstring Data sent with the call. gasUsedstring Gas consumed by the trace. outputstring Result of the call. errorstring Any error encountered. revertReasonstring Solidity revert reason, if any. callsarray list of sub-calls prestateTracerobject object balancestring Account balance in wei. nonceuint64 The transaction count for the account. codestring Hex-encoded contract bytecode. storagemap\[string\]string Contract's storage slots. [Debug and trace](https://drpc.org/docs/base-api/debugandtrace "Debug and trace") [debug\_traceBlockByHash](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByHash "debug_traceBlockByHash") --- # eth_newFilter - Base eth\_newFilter - Base ===================== eth\_newFilter. Create a new filter to monitor specific logs or events ---------------------------------------------------------------------- eth\_newFilter - base \[Value: 20CU\] Creates a filter object to notify when logs that match specific criteria are added to the blockchain ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Monitor contract events within specific block range * Filter logs from a particular smart contract * Track specific events for auditing or analytics ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support filter creation functionality * Accurate block and address input essential for results ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_newFilter","params":[{"fromBlock": "0xe20360", "toBlock": "0xe20411", "address": "0x6b175474e89094c44da98b954eedeac495271d0f","topics": []}],"id":1}' ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of objects array of objects blockHashstring Specifies the block hash to filter logs from. If this parameter is set, the fromBlock and toBlock parameters will be ignored. addressarray\_of\_strings (optional) Contract address or a list of addresses from which logs should originate. fromBlockstring (optional) The starting block for the filter. * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. toBlockstring (optional) The ending block for the filter * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. topicsarray\_of\_strings (optional) An array of log topics. Response -------- 200 The ID of the newly created filter, represented as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects [eth\_getLogs](https://drpc.org/docs/base-api/eventlogs/eth_getLogs "eth_getLogs") [eth\_getFilterChanges](https://drpc.org/docs/base-api/eventlogs/eth_getFilterChanges "eth_getFilterChanges") --- # eth_syncing - Base eth\_syncing - Base =================== eth\_syncing. Checks the synchronization status of the node ----------------------------------------------------------- eth\_syncing - base \[Value: 20CU\] Checks the synchronization status of a node ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Check node synchronization status with the blockchain * Monitor progress of node syncing to network * Validate node sync state for operational readiness ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires continuous connection to the node * Node must support eth\_syncing method * Accurate synchronization data depends on node performance ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_syncing","params":[],"id":67}' ' { "jsonrpc": "2.0", "id": 67, "result": { "startingBlock": "0x384", "currentBlock": "0x386", "highestBlock": "0x454" } } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 Returns an object with synchronization details if the node is syncing, or false if the node is fully synced. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_strings object startingBlock string The block number where the import process started, encoded in hexadecimal. currentBlock string TThe current block number, the same as eth\_blockNumber, encoded in hexadecimal. highestBlock string The estimated highest block number, encoded in hexadecimal. [net\_peerCount](https://drpc.org/docs/base-api/chaininfo/net_peerCount "net_peerCount") [Executing transactions](https://drpc.org/docs/base-api/executingtransactions "Executing transactions") --- # debug_traceBlockByHash - Base debug\_traceBlockByHash - Base ============================== debug\_traceBlockByHash. Trace the execution of all transactions in a block --------------------------------------------------------------------------- debug\_traceBlockByHash - base \[Value: 20CU\] Traces the execution of all transactions in a block specified by its hash, providing detailed execution traces. ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Trace execution paths for transactions in specific block * Debug contract interactions within a given block * Analyze gas usage for transactions in specific block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Traces may include large data sets for complex blocks * Potential delays due to high processing requirements ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"debug_traceBlockByHash","params":["0x97b49e43632ac70c46b4003434058b18db0ad809617bd29f3448d46ca9085576", {"tracer": "callTracer"}],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": [\ {\ "result": {\ "type": "CALL",\ "from": "0xe088776deabb472ffd2843e330e79c880a5f979e",\ "to": "0x70526cc7a6d6320b44122ea9d2d07670accc85a1",\ "value": "0xec5162",\ "gas": "0x7df99",\ "gasUsed": "0x34e29",\ "input": "0x00e051479210030000000000000000000000f160594a405d53811d3bc4766596efd80fd545a27000000000000000000000128acb080000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009cc54410f805000000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d2500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002d6b175474e89094c44da98b954eedeac495271d0fc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f4010001c4ba12222222228d8ba445958a75a0704d566bf2c80000000000000000000052bbbe2900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f5600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000ff00000000000000000000000000000000008485b36623632ffa5e486008df4d0b6d363defdb00020000000000000000034a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f98805a4e8be255a32880fdec7f6728c6568ba000000000000000000000000000000000000000000000003acbfe2488ff5c000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000f19663f2ca0454accad3e094448ea6f7744388045400000000000000000000128acb08000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec44000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000003a6d6cd1833904000000000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002d5f98805a4e8be255a32880fdec7f6728c6568ba0c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb80000",\ "output": "0x",\ "calls": [\ {\ "type": "CALL",\ "from": "0x70526cc7a6d6320b44122ea9d2d07670accc85a1",\ "to": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "value": "0x0",\ "gas": "0x7b2a2",\ "gasUsed": "0x34064",\ "input": "0xe051479210030000000000000000000000f160594a405d53811d3bc4766596efd80fd545a27000000000000000000000128acb080000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009cc54410f805000000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d2500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002d6b175474e89094c44da98b954eedeac495271d0fc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f4010001c4ba12222222228d8ba445958a75a0704d566bf2c80000000000000000000052bbbe2900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f5600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000ff00000000000000000000000000000000008485b36623632ffa5e486008df4d0b6d363defdb00020000000000000000034a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f98805a4e8be255a32880fdec7f6728c6568ba000000000000000000000000000000000000000000000003acbfe2488ff5c000000000000000000000000000000000000000000000000000000000000000000c0000000000000000000000000000000000000000000000000000000000000000000f19663f2ca0454accad3e094448ea6f7744388045400000000000000000000128acb08000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec44000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000003a6d6cd1833904000000000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002d5f98805a4e8be255a32880fdec7f6728c6568ba0c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb80000",\ "output": "0x",\ "calls": [\ {\ "type": "STATICCALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "gas": "0x77f15",\ "gasUsed": "0x9e6",\ "input": "0x70a08231000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec44",\ "output": "0x0000000000000000000000000000000000000000000000313abf3c5282b4912f"\ },\ {\ "type": "CALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0x60594a405d53811d3bc4766596efd80fd545a270",\ "value": "0x0",\ "gas": "0x76a9e",\ "gasUsed": "0xf59c",\ "input": "0x128acb080000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000009cc54410f805000000000000000000000000000fffd8963efd1fc6a506488495d951d5263988d2500000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002d6b175474e89094c44da98b954eedeac495271d0fc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f40100",\ "output": "0xffffffffffffffffffffffffffffffffffffffffffffffc5311d4d18418aed2b00000000000000000000000000000000000000000000000009cc54410f805000",\ "calls": [\ {\ "type": "CALL",\ "from": "0x60594a405d53811d3bc4766596efd80fd545a270",\ "to": "0x6b175474e89094c44da98b954eedeac495271d0f",\ "value": "0x0",\ "gas": "0x6df38",\ "gasUsed": "0x3312",\ "input": "0xa9059cbb0000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f5600000000000000000000000000000000000000000000003acee2b2e7be7512d5",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001"\ },\ {\ "type": "STATICCALL",\ "from": "0x60594a405d53811d3bc4766596efd80fd545a270",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "gas": "0x6a98c",\ "gasUsed": "0x9e6",\ "input": "0x70a0823100000000000000000000000060594a405d53811d3bc4766596efd80fd545a270",\ "output": "0x0000000000000000000000000000000000000000000000dbe172a2b8ca9ae46d"\ },\ {\ "type": "CALL",\ "from": "0x60594a405d53811d3bc4766596efd80fd545a270",\ "to": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "value": "0x0",\ "gas": "0x69cd4",\ "gasUsed": "0x2fa1",\ "input": "0xfa461e33ffffffffffffffffffffffffffffffffffffffffffffffc5311d4d18418aed2b00000000000000000000000000000000000000000000000009cc54410f8050000000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002d6b175474e89094c44da98b954eedeac495271d0fc02aaa39b223fe8d0a0e5c4f27ead9083c756cc20001f4010000000000000000000000000000000000000000",\ "output": "0x",\ "calls": [\ {\ "type": "CALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "value": "0x0",\ "gas": "0x67e20",\ "gasUsed": "0x2b11",\ "input": "0x23b872dd000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec4400000000000000000000000060594a405d53811d3bc4766596efd80fd545a27000000000000000000000000000000000000000000000000009cc54410f805000",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001"\ }\ ]\ },\ {\ "type": "STATICCALL",\ "from": "0x60594a405d53811d3bc4766596efd80fd545a270",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "gas": "0x66b79",\ "gasUsed": "0x216",\ "input": "0x70a0823100000000000000000000000060594a405d53811d3bc4766596efd80fd545a270",\ "output": "0x0000000000000000000000000000000000000000000000dbeb3ef6f9da1b346d"\ }\ ]\ },\ {\ "type": "CALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0xba12222222228d8ba445958a75a0704d566bf2c8",\ "value": "0x0",\ "gas": "0x66de6",\ "gasUsed": "0x11c84",\ "input": "0x52bbbe2900000000000000000000000000000000000000000000000000000000000000e00000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f5600000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000ff00000000000000000000000000000000008485b36623632ffa5e486008df4d0b6d363defdb00020000000000000000034a00000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f98805a4e8be255a32880fdec7f6728c6568ba000000000000000000000000000000000000000000000003acbfe2488ff5c000000000000000000000000000000000000000000000000000000000000000000c00000000000000000000000000000000000000000000000000000000000000000",\ "output": "0x00000000000000000000000000000000000000000000003a9335df23feb747af",\ "calls": [\ {\ "type": "CALL",\ "from": "0xba12222222228d8ba445958a75a0704d566bf2c8",\ "to": "0x8485b36623632ffa5e486008df4d0b6d363defdb",\ "value": "0x0",\ "gas": "0x60d56",\ "gasUsed": "0x4254",\ "input": "0x9d2c110c00000000000000000000000000000000000000000000000000000000000000600000000000000000000000000000000000000000000039d35935dae2cab038d40000000000000000000000000000000000000000000018f4c67acb2fb796ea8300000000000000000000000000000000000000000000000000000000000000000000000000000000000000006b175474e89094c44da98b954eedeac495271d0f0000000000000000000000005f98805a4e8be255a32880fdec7f6728c6568ba000000000000000000000000000000000000000000000003acbfe2488ff5c00008485b36623632ffa5e486008df4d0b6d363defdb00020000000000000000034a0000000000000000000000000000000000000000000000000000000000ec51330000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f560000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f5600000000000000000000000000000000000000000000000000000000000001200000000000000000000000000000000000000000000000000000000000000000",\ "output": "0x00000000000000000000000000000000000000000000003a9335df23feb747af"\ },\ {\ "type": "CALL",\ "from": "0xba12222222228d8ba445958a75a0704d566bf2c8",\ "to": "0x6b175474e89094c44da98b954eedeac495271d0f",\ "value": "0x0",\ "gas": "0x5aa6d",\ "gasUsed": "0x297a",\ "input": "0x23b872dd0000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f56000000000000000000000000ba12222222228d8ba445958a75a0704d566bf2c800000000000000000000000000000000000000000000003acbfe2488ff5c0000",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001"\ },\ {\ "type": "CALL",\ "from": "0xba12222222228d8ba445958a75a0704d566bf2c8",\ "to": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",\ "value": "0x0",\ "gas": "0x57251",\ "gasUsed": "0x3390",\ "input": "0xa9059cbb0000000000000000000000000000000000007f150bd6f54c40a34d7c3d5e9f5600000000000000000000000000000000000000000000003a9335df23feb747af",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001"\ }\ ]\ },\ {\ "type": "CALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0x9663f2ca0454accad3e094448ea6f77443880454",\ "value": "0x0",\ "gas": "0x54b0b",\ "gasUsed": "0xead6",\ "input": "0x128acb08000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec44000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000003a6d6cd1833904000000000000000000000000000000000000000000000000000000000001000276a400000000000000000000000000000000000000000000000000000000000000a0000000000000000000000000000000000000000000000000000000000000002d5f98805a4e8be255a32880fdec7f6728c6568ba0c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb80000",\ "output": "0x00000000000000000000000000000000000000000000003a6d6cd18339040000fffffffffffffffffffffffffffffffffffffffffffffffff6218cda9d1bdc4d",\ "calls": [\ {\ "type": "CALL",\ "from": "0x9663f2ca0454accad3e094448ea6f77443880454",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "value": "0x0",\ "gas": "0x4ad44",\ "gasUsed": "0x1f7e",\ "input": "0xa9059cbb000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec4400000000000000000000000000000000000000000000000009de732562e423b3",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001"\ },\ {\ "type": "STATICCALL",\ "from": "0x9663f2ca0454accad3e094448ea6f77443880454",\ "to": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",\ "gas": "0x48add",\ "gasUsed": "0x9b7",\ "input": "0x70a082310000000000000000000000009663f2ca0454accad3e094448ea6f77443880454",\ "output": "0x00000000000000000000000000000000000000000000b88db8ae77fad8af1b44"\ },\ {\ "type": "CALL",\ "from": "0x9663f2ca0454accad3e094448ea6f77443880454",\ "to": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "value": "0x0",\ "gas": "0x47e53",\ "gasUsed": "0x1d73",\ "input": "0xfa461e3300000000000000000000000000000000000000000000003a6d6cd18339040000fffffffffffffffffffffffffffffffffffffffffffffffff6218cda9d1bdc4d0000000000000000000000000000000000000000000000000000000000000060000000000000000000000000000000000000000000000000000000000000002d5f98805a4e8be255a32880fdec7f6728c6568ba0c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000bb8000000000000000000000000000000000000000000",\ "output": "0x",\ "calls": [\ {\ "type": "CALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",\ "value": "0x0",\ "gas": "0x46844",\ "gasUsed": "0x1900",\ "input": "0xa9059cbb0000000000000000000000009663f2ca0454accad3e094448ea6f7744388045400000000000000000000000000000000000000000000003a6d6cd18339040000",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001"\ }\ ]\ },\ {\ "type": "STATICCALL",\ "from": "0x9663f2ca0454accad3e094448ea6f77443880454",\ "to": "0x5f98805a4e8be255a32880fdec7f6728c6568ba0",\ "gas": "0x45edd",\ "gasUsed": "0x1e7",\ "input": "0x70a082310000000000000000000000009663f2ca0454accad3e094448ea6f77443880454",\ "output": "0x00000000000000000000000000000000000000000000b8c8261b497e11b31b44"\ }\ ]\ },\ {\ "type": "STATICCALL",\ "from": "0x0000000000007f150bd6f54c40a34d7c3d5e9f56",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "gas": "0x462ec",\ "gasUsed": "0x216",\ "input": "0x70a08231000000000000000000000000dfee68a9adb981cd08699891a11cabe10f25ec44",\ "output": "0x0000000000000000000000000000000000000000000000313ad15b36d61864e2"\ }\ ]\ }\ ]\ }\ },\ {\ "...": null\ }\ ] } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array blockHashstring The hash of the block to be traced. tracerobject Supports callTracer and prestateTracer for detailed trace analysis. array tracerstring Default: callTracer tracerConfigobject array onlyTopCallboolean Response -------- 200 Array of block traces. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects Varies for callTracer and prestateTracer. object callTracerobject object fromstring Sender's address. tostring Receiver's address. valuestring Amount transferred in wei. gasstring Gas allocated for the call. inputstring Data sent with the call. gasUsedstring Gas consumed by the trace. outputstring Result of the call. errorstring Any error encountered. revertReasonstring Solidity revert reason, if any. callsarray list of sub-calls prestateTracerobject object balancestring Account balance in wei. nonceuint64 The transaction count for the account. codestring Hex-encoded contract bytecode. storagemap\[string\]string Contract's storage slots. [debug\_traceBlockByNumber](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByNumber "debug_traceBlockByNumber") [debug\_traceTransaction](https://drpc.org/docs/base-api/debugandtrace/debug_traceTransaction "debug_traceTransaction") --- # debug_traceCall - Base debug\_traceCall - Base ======================= debug\_traceBlockByHash. Run eth\_call on top of a block -------------------------------------------------------- debug\_traceCall - base \[Value: 20CU\] Trace the execution of a call without broadcasting ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Simulate a transaction execution without sending it on-chain * Trace internal smart contract operations during a call * Debug gas usage and execution logic before broadcasting ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support \`debug\_traceCall\` * High resource usage for large or complex calls ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{ "id": 1, "jsonrpc": "2.0", "method": "debug_traceCall", "params": [\ {\ "from": "0xd8dA6BF26964aF9D7eEd9e03E53415D37aA96045",\ "to": "0x0000000000a39bb272e79075ade125fd351887ac",\ "gas": "0x1E9EF",\ "gasPrice": "0xBD32B2ABC",\ "data": "0xd0e30db0"\ },\ "latest",\ {\ "tracer": "callTracer"\ }\ ] }' { "jsonrpc": "2.0", "id": 1, "result": { "from": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045", "gas": "0x1e9ef", "gasUsed": "0x7657", "to": "0x0000000000a39bb272e79075ade125fd351887ac", "input": "0xd0e30db0", "calls": [\ {\ "from": "0x0000000000a39bb272e79075ade125fd351887ac",\ "gas": "0x17eab",\ "gasUsed": "0x10ff",\ "to": "0x01a656024de4b89e2d0198bf4d468e8fd2358b17",\ "input": "0xd0e30db0",\ "value": "0x0",\ "type": "DELEGATECALL"\ }\ ], "value": "0x0", "type": "CALL" } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array transactionCallobject The transaction call object containing the following fields: array fromstring The address the transaction is sent from. tostring REQUIRED. The address the transaction is directed to. gasinteger The integer of the gas provided for the transaction execution. gasPriceinteger The integer of the gas price used for each paid gas. valueinteger The integer value sent with this transaction. datastring The hash of the method signature and encoded parameters. blockNumberstring The block number in hexadecimal format, the block hash, or tags. tracerobject REQUIRED. The tracer object specifying the following fields: array tracerstring Type of tracer. Could be 'callTracer' or 'prestateTracer'. tracerConfigobject Configuration settings for the tracer. array onlyTopCallboolean If true, traces only the top-level call (primary call) and skips sub-calls. Response -------- 200 Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects The transaction trace object containing details of the trace. object failedboolean Indicates whether the transaction was successful or not. gasinteger Total gas consumed during the transaction. returnValuestring The return value of the executed contract call. structLogsarray Detailed logs of each step of the trace, including the following fields: object pcinteger Current program counter (bytecode index). opstring Name of the current executing operation. gasinteger Available gas at this step. gasCostinteger Gas cost of the current operation. depthinteger Number of call frames deep this operation is. errorstring Error encountered during execution, if any. stackarray Current state of the EVM stack at this step. memoryarray Current state of the EVM memory at this step. storagestring Current state of the contract’s storage at this step. refundinteger Total gas refund available at this step. [debug\_traceTransaction](https://drpc.org/docs/base-api/debugandtrace/debug_traceTransaction "debug_traceTransaction") [Account info](https://drpc.org/docs/base-api/accountinfo "Account info") --- # eth_getFilterLogs - Base eth\_getFilterLogs - Base ========================= eth\_getFilterLogs. Retrieve all log entries for a specific filter ------------------------------------------------------------------ eth\_getFilterLogs - base \[Value: 20CU\] Retrieves all past logs for a filter ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Analyze past events from a created filter * Audit contract interactions using filter logs ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support historical log queries * Accurate filter ID essential for correct log data ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "params": [\ "0x1"\ ], "method": "eth_getFilterLogs" } ' { "jsonrpc": "2.0", "id": 1, "result": [\ {\ "address": "0x79c912fef520be002c2b6e57ec4324e260f38e50",\ "topics": [\ "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",\ "0x000000000000000000000000b94cb72c9b6282b78107a7c8a5eb74de08177935",\ "0x0000000000000000000000009c12939390052919af3155f41bf4160fd3666a6f"\ ],\ "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",\ "blockNumber": "0x45cb8ed",\ "transactionHash": "0xa850e378548efda5217e6853fd56cded533d1a61377838abc4ddcc2b13d0acde",\ "transactionIndex": "0x0",\ "blockHash": "0x60d83df96893805e81eca600a67570cea16481dee40d5e9b210eac215352b714",\ "logIndex": "0x0",\ "removed": false\ }\ ] } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings filterIDstring The ID of the filter for which to retrieve all past logs. Response -------- 200 An array containing all logs that match the filter criteria, providing historical data relevant to the filter’s configuration. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects Array of log objects, or an empty array if nothing has changed since last poll. object blockHashstring 32-byte hash of the block containing the log, or null if pending. blockNumberstring Block number containing the log, or null if pending. transactionIndexstring Index position of the transaction that generated the log, or null if pending. addressstring 20-byte address from which the log originated. logIndexstring Index position of the log in the block, or null if pending. datastring Non-indexed arguments of the log, in 32-byte segments. removedboolean Indicates if the log was removed due to a chain reorganization (true) or is valid (false). topicsarray\_of\_strings Array of zero to four 32-byte data strings of indexed log arguments. transactionHashstring Hash of the transaction that generated the log, or null if pending. [eth\_uninstallFilter](https://drpc.org/docs/base-api/eventlogs/eth_uninstallFilter "eth_uninstallFilter") [Chain info](https://drpc.org/docs/base-api/chaininfo "Chain info") --- # eth_uninstallFilter - Base eth\_uninstallFilter - Base =========================== eth\_uninstallFilter. Uninstall a filter and stop monitoring it --------------------------------------------------------------- eth\_uninstallFilter - base \[Value: 20CU\] Uninstalls a filter with the specified filter ID ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Remove specific filter to stop tracking events * Free up resources by uninstalling unused filters * Clear active filters for new monitoring tasks ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid filter ID for uninstallation * Node must support filter uninstallation method * Accurate filter ID essential for correct uninstallation ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "params": [\ "0x1"\ ], "method": "eth_uninstallFilter" } ' { "id": 1, "jsonrpc": "2.0", "result": true } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings filterIDstring TThe ID of the filter to uninstall, Response -------- 200 Returns true if the filter was successfully uninstalled, false otherwise Response params --------------- object idinteger jsonrpcstring resultboolean [eth\_getFilterChanges](https://drpc.org/docs/base-api/eventlogs/eth_getFilterChanges "eth_getFilterChanges") [eth\_getFilterLogs](https://drpc.org/docs/base-api/eventlogs/eth_getFilterLogs "eth_getFilterLogs") --- # eth_getLogs - Base eth\_getLogs - Base =================== eth\_getLogs. Retrieve log entries that match specific filter criteria ---------------------------------------------------------------------- eth\_getLogs - base \[Value: 20CU\] Returns an array of all logs matching a given filter object ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve event logs from specific smart contract addresses * Monitor emitted events within a defined block range * Filter logs by topics for transaction analysis ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * A maximuim of 5,000 parameters in a single request * A maximum of 10,000 results can be returned by a single query * Query duration must not exceed 10 seconds ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_getLogs", "params": [\ {\ "address": [\ "0xb59f67a8bff5d8cd03f6ac17265c550ed8f33907"\ ],\ "fromBlock": "0x429d3b",\ "toBlock": "latest",\ "topics": [\ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",\ "0x00000000000000000000000000b46c2526e227482e2ebb8f4c69e4674d262e75",\ "0x00000000000000000000000054a2d42a40f51259dedd1978f6c118a0f0eff078"\ ]\ }\ ] }' { "jsonrpc": "2.0", "id": 1, "result": [\ {\ "address": "0xb59f67a8bff5d8cd03f6ac17265c550ed8f33907",\ "blockHash": "0x8243343df08b9751f5ca0c5f8c9c0460d8a9b6351066fae0acbd4d3e776de8bb",\ "blockNumber": "0x429d3b",\ "data": "0x000000000000000000000000000000000000000000000000000000012a05f200",\ "logIndex": "0x56",\ "removed": false,\ "topics": [\ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",\ "0x00000000000000000000000000b46c2526e227482e2ebb8f4c69e4674d262e75",\ "0x00000000000000000000000054a2d42a40f51259dedd1978f6c118a0f0eff078"\ ],\ "transactionHash": "0xab059a62e22e230fe0f56d8555340a29b2e9532360368f810595453f6fdd213b",\ "transactionIndex": "0xac"\ }\ ] } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of objects array of objects blockHashstring The block hash to filter logs from. If this parameter is present, then the fromBlock and toBlock parameters are ignored. addressstring Contract address or a list of addresses from which logs should originate. fromBlockstring toBlockstring The block number or block hash to search up to * latest \[default\] \- the blockchain's most recent block * safe \- a block validated by the beacon chain * finalized \- a block confirmed by over two-thirds of validators * earliest \- the first or genesis block * pending \- transactions broadcasted but not yet included in a block topicsarray Array of 32 Bytes DATA topics. Topics are order-dependent. Each topic can also be an array of DATA with 'or' options. Response -------- 200 Returns array of log objects, or an empty array if nothing has changed since last poll. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects Array of log objects, or an empty array if nothing has changed since last poll. object blockHashstring 32 Bytes - hash of the block where this log was in. null when its pending. null when its pending log blockNumberstring The block number where this log was in. null when its pending. null when its pending log. transactionIndexstring Integer of the transactions index position log was created from. null when its pending log. addressstring 20 Bytes - address from which this log originated. logIndexstring Integer of the log index position in the block. null when its pending log. datastring Contains one or more 32 Bytes non-indexed arguments of the log. removedboolean true when the log was removed, due to a chain reorganization. false if its a valid log. topicsarray\_of\_strings Array of zero to four 32 Bytes DATA of indexed log arguments. In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declare the event with the anonymous specifier. transactionHashstring Hash of the transactions this log was created from. null when its pending log. [Event logs](https://drpc.org/docs/base-api/eventlogs "Event logs") [eth\_newFilter](https://drpc.org/docs/base-api/eventlogs/eth_newFilter "eth_newFilter") --- # eth_sendRawTransaction - Base eth\_sendRawTransaction - Base ============================== eth\_sendRawTransaction. Send a signed transaction to the network ----------------------------------------------------------------- eth\_sendRawTransaction - base \[Value: 20CU\] Submits a pre-signed transaction for broadcast to the network ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Broadcast signed transaction to the network * Validate and send raw transaction for execution * Submit a pre-signed transaction to the blockchain ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires a properly signed transaction input * Network connection must be active and stable * Node must accept raw transaction submissions ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"eth_sendRawTransaction","params":["Signed Transaction"],"id":1}' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings datastring The raw signed transaction data, encoded as a hexadecimal string. This includes all transaction details and the signature. Response -------- 200 The hash of the transaction, represented as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects [eth\_call](https://drpc.org/docs/base-api/executingtransactions/eth_call "eth_call") [Gas estimation](https://drpc.org/docs/base-api/gasestimation "Gas estimation") --- # debug_traceTransaction - Base debug\_traceTransaction - Base ============================== debug\_traceTransaction. Trace the execution of a specific transaction ---------------------------------------------------------------------- debug\_traceTransaction - base \[Value: 20CU\] Traces the execution of a given transaction, providing detailed information about its internal operations for debugging purposes ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Debug detailed execution of a specific transaction * Analyze smart contract interactions within a transaction * Trace internal operations and calls of a transaction ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support the debug\_traceTransaction method * High resource usage for tracing complex transactions ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"debug_traceTransaction","params":["0x9e63085271890a141297039b3b711913699f1ee4db1acb667ad7ce304772036b", {"tracer": "callTracer"}], "id":1,"jsonrpc":"2.0"}' { "id": 1, "jsonrpc": "2.0", "result": { "from": "0x4bb4c1b0745ef7b4642feeccd0740dec417ca0a0", "gas": "0x40caa", "gasUsed": "0x34fe1", "to": "0x19b3eb3af5d93b77a5619b047de0eed7115a19e7", "input": "0x6a761202000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031434000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001248803dbee0000000000000000000000000000000000000000000000000000001cdef9d800000000000000000000000000000000000000000000000230b3585896e930eb8500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e7000000000000000000000000000000000000000000000000000000006118595000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c30000000000000000000000004bb4c1b0745ef7b4642feeccd0740dec417ca0a00000000000000000000000000000000000000000000000000000000000000000013409ad9803335eb97629dc2de61cb153a80427fc8bdd7226e0c7c5f640bbf9d677ac2bdd83773b497f04434b66802f04a60f9946d2bc80b42a4cea1466ab2abd1ba8be8eafa42b4590c707b0a85c6c7dd4be7f3cc6ecf85f0fd935c4e5d7df01440452c1fc6647631279cbb158d4735f415f95847475b61616f19b91f509b6f6bb1b0000000000000000000000000000000000000000000000000000000000", "output": "0x0000000000000000000000000000000000000000000000000000000000000001", "calls": [\ {\ "from": "0x19b3eb3af5d93b77a5619b047de0eed7115a19e7",\ "gas": "0x37cff",\ "gasUsed": "0x2e415",\ "to": "0x34cfac646f301356faa8b21e94227e3583fe3f5f",\ "input": "0x6a761202000000000000000000000000d9e1ce17f2641f24ae83637ab66a2cca9c378b9f0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000014000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000031434000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000002a000000000000000000000000000000000000000000000000000000000000001248803dbee0000000000000000000000000000000000000000000000000000001cdef9d800000000000000000000000000000000000000000000000230b3585896e930eb8500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e7000000000000000000000000000000000000000000000000000000006118595000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb480000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000c30000000000000000000000004bb4c1b0745ef7b4642feeccd0740dec417ca0a00000000000000000000000000000000000000000000000000000000000000000013409ad9803335eb97629dc2de61cb153a80427fc8bdd7226e0c7c5f640bbf9d677ac2bdd83773b497f04434b66802f04a60f9946d2bc80b42a4cea1466ab2abd1ba8be8eafa42b4590c707b0a85c6c7dd4be7f3cc6ecf85f0fd935c4e5d7df01440452c1fc6647631279cbb158d4735f415f95847475b61616f19b91f509b6f6bb1b0000000000000000000000000000000000000000000000000000000000",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001",\ "calls": [\ {\ "from": "0x19b3eb3af5d93b77a5619b047de0eed7115a19e7",\ "gas": "0x33430",\ "gasUsed": "0xbb8",\ "to": "0x0000000000000000000000000000000000000001",\ "input": "0x1d46146de9a554c9f76093d4b1dc7aa06165db86235e726c377a327ab94abe1e000000000000000000000000000000000000000000000000000000000000001b3409ad9803335eb97629dc2de61cb153a80427fc8bdd7226e0c7c5f640bbf9d677ac2bdd83773b497f04434b66802f04a60f9946d2bc80b42a4cea1466ab2abd",\ "output": "0x0000000000000000000000008f99b0b48b23908da9f727b5083052d5099e6aea",\ "type": "STATICCALL"\ },\ {\ "from": "0x19b3eb3af5d93b77a5619b047de0eed7115a19e7",\ "gas": "0x31d12",\ "gasUsed": "0xbb8",\ "to": "0x0000000000000000000000000000000000000001",\ "input": "0x1d46146de9a554c9f76093d4b1dc7aa06165db86235e726c377a327ab94abe1e000000000000000000000000000000000000000000000000000000000000001ba8be8eafa42b4590c707b0a85c6c7dd4be7f3cc6ecf85f0fd935c4e5d7df01440452c1fc6647631279cbb158d4735f415f95847475b61616f19b91f509b6f6bb",\ "output": "0x000000000000000000000000b4a3f907ec1611f22543219ae9bb33ec5e96e116",\ "type": "STATICCALL"\ },\ {\ "from": "0x19b3eb3af5d93b77a5619b047de0eed7115a19e7",\ "gas": "0x2fc0c",\ "gasUsed": "0x26897",\ "to": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",\ "input": "0x8803dbee0000000000000000000000000000000000000000000000000000001cdef9d800000000000000000000000000000000000000000000000230b3585896e930eb8500000000000000000000000000000000000000000000000000000000000000a000000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e7000000000000000000000000000000000000000000000000000000006118595000000000000000000000000000000000000000000000000000000000000000030000000000000000000000006b3595068778dd592e39a122f4f5a5cf09c90fe2000000000000000000000000c02aaa39b223fe8d0a0e5c4f27ead9083c756cc2000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000300000000000000000000000000000000000000000000022de769e2b6a5d409910000000000000000000000000000000000000000000000021196bcd1acdc23a30000000000000000000000000000000000000000000000000000001cdef9d800",\ "calls": [\ {\ "from": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",\ "gas": "0x2dd43",\ "gasUsed": "0x9d5",\ "to": "0x397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "input": "0x0902f1ac",\ "output": "0x0000000000000000000000000000000000000000000000000000d1d55dbd5611000000000000000000000000000000000000000000000efb6c9a5ae9b236f51100000000000000000000000000000000000000000000000000000000611852e3",\ "type": "STATICCALL"\ },\ {\ "from": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",\ "gas": "0x2c046",\ "gasUsed": "0x9d5",\ "to": "0x795065dcc9f64b5614c407a6efdc400da6221fb0",\ "input": "0x0902f1ac",\ "output": "0x000000000000000000000000000000000000000000111405e9daa45d5d83eb55000000000000000000000000000000000000000000001044b007d0691cb8a3eb000000000000000000000000000000000000000000000000000000006118520d",\ "type": "STATICCALL"\ },\ {\ "from": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",\ "gas": "0x2a16e",\ "gasUsed": "0x5000",\ "to": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",\ "input": "0x23b872dd00000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e7000000000000000000000000795065dcc9f64b5614c407a6efdc400da6221fb000000000000000000000000000000000000000000000022de769e2b6a5d40991",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001",\ "value": "0x0",\ "type": "CALL"\ },\ {\ "from": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",\ "gas": "0x24671",\ "gasUsed": "0xbc2a",\ "to": "0x795065dcc9f64b5614c407a6efdc400da6221fb0",\ "input": "0x022c0d9f00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000021196bcd1acdc23a3000000000000000000000000397ff1542f962076d0bfe58ea045ffa2d347aca000000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",\ "calls": [\ {\ "from": "0x795065dcc9f64b5614c407a6efdc400da6221fb0",\ "gas": "0x20960",\ "gasUsed": "0x323e",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "input": "0xa9059cbb000000000000000000000000397ff1542f962076d0bfe58ea045ffa2d347aca00000000000000000000000000000000000000000000000021196bcd1acdc23a3",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001",\ "value": "0x0",\ "type": "CALL"\ },\ {\ "from": "0x795065dcc9f64b5614c407a6efdc400da6221fb0",\ "gas": "0x1d580",\ "gasUsed": "0x242",\ "to": "0x6b3595068778dd592e39a122f4f5a5cf09c90fe2",\ "input": "0x70a08231000000000000000000000000795065dcc9f64b5614c407a6efdc400da6221fb0",\ "output": "0x000000000000000000000000000000000000000000111633d14487140357f4e6",\ "type": "STATICCALL"\ },\ {\ "from": "0x795065dcc9f64b5614c407a6efdc400da6221fb0",\ "gas": "0x1d19f",\ "gasUsed": "0x216",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "input": "0x70a08231000000000000000000000000795065dcc9f64b5614c407a6efdc400da6221fb0",\ "output": "0x0000000000000000000000000000000000000000000010429e7113976fdc8048",\ "type": "STATICCALL"\ }\ ],\ "value": "0x0",\ "type": "CALL"\ },\ {\ "from": "0xd9e1ce17f2641f24ae83637ab66a2cca9c378b9f",\ "gas": "0x18547",\ "gasUsed": "0xf5f2",\ "to": "0x397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "input": "0x022c0d9f0000000000000000000000000000000000000000000000000000001cdef9d800000000000000000000000000000000000000000000000000000000000000000000000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e700000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",\ "calls": [\ {\ "from": "0x397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "gas": "0x14b59",\ "gasUsed": "0x6925",\ "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",\ "input": "0xa9059cbb00000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e70000000000000000000000000000000000000000000000000000001cdef9d800",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001",\ "calls": [\ {\ "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",\ "gas": "0x12a50",\ "gasUsed": "0x4cac",\ "to": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",\ "input": "0xa9059cbb00000000000000000000000019b3eb3af5d93b77a5619b047de0eed7115a19e70000000000000000000000000000000000000000000000000000001cdef9d800",\ "output": "0x0000000000000000000000000000000000000000000000000000000000000001",\ "value": "0x0",\ "type": "DELEGATECALL"\ }\ ],\ "value": "0x0",\ "type": "CALL"\ },\ {\ "from": "0x397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "gas": "0xe15a",\ "gasUsed": "0x523",\ "to": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",\ "input": "0x70a08231000000000000000000000000397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "output": "0x0000000000000000000000000000000000000000000000000000d1b87ec37e11",\ "calls": [\ {\ "from": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",\ "gas": "0xdafb",\ "gasUsed": "0x211",\ "to": "0xa2327a938febf5fec13bacfb16ae10ecbc4cbdcf",\ "input": "0x70a08231000000000000000000000000397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "output": "0x0000000000000000000000000000000000000000000000000000d1b87ec37e11",\ "value": "0x0",\ "type": "DELEGATECALL"\ }\ ],\ "type": "STATICCALL"\ },\ {\ "from": "0x397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "gas": "0xdaa4",\ "gasUsed": "0x216",\ "to": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",\ "input": "0x70a08231000000000000000000000000397ff1542f962076d0bfe58ea045ffa2d347aca0",\ "output": "0x000000000000000000000000000000000000000000000efd7e3117bb5f1318b4",\ "type": "STATICCALL"\ }\ ],\ "value": "0x0",\ "type": "CALL"\ }\ ],\ "value": "0x0",\ "type": "CALL"\ }\ ],\ "value": "0x0",\ "type": "DELEGATECALL"\ }\ ], "value": "0x0", "type": "CALL" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array blockNumberstring Specifies the block number to locate the transaction. tracerobject Supports callTracer and prestateTracer. array tracerstring Default value is callTracer. tracerConfigobject array onlyTopCallboolean timeoutstring Specifies a custom timeout for JavaScript-based tracing calls. Default is 5 seconds, maximum is 10 seconds. Valid units are "ns", "us", "ms", "s", with optional fractions, e.g., "200ms". Response -------- 200 Array of block traces. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects Detailed trace data for the specified transaction, including call stack, gas usage, and execution results. object callTracerobject object fromstring Sender's address. tostring Receiver's address. valuestring Amount transferred in wei. gasstring Gas allocated for the call. inputstring Data sent with the call. gasUsedstring Gas consumed by the trace. outputstring Result of the call. errorstring Any error encountered. revertReasonstring Solidity revert reason, if any. callsarray list of sub-calls prestateTracerobject object balancestring Account balance in wei. nonceuint64 The transaction count for the account. codestring Hex-encoded contract bytecode. storagemap\[string\]string Contract's storage slots. [debug\_traceBlockByHash](https://drpc.org/docs/base-api/debugandtrace/debug_traceBlockByHash "debug_traceBlockByHash") [debug\_traceCall](https://drpc.org/docs/base-api/debugandtrace/debug_traceCall "debug_traceCall") --- # eth_getFilterChanges - Base eth\_getFilterChanges - Base ============================ eth\_getFilterChanges. Retrieve changes for a filter since the last poll ------------------------------------------------------------------------ eth\_getFilterChanges - base \[Value: 20CU\] Retrieves the changes (logs or transaction hashes) for a filter created with eth\_newFilter or eth\_newBlockFilter ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Check for updates on created filter logs * Monitor changes in blockchain events with filter * Track specific contract events for real-time updates ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support filter change queries * Accurate filter ID essential for relevant updates ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "params": [\ "0x1"\ ], "method": "eth_getFilterChanges" } ' { "jsonrpc": "2.0", "id": 1, "result": [\ {\ "address": "0x79c912fef520be002c2b6e57ec4324e260f38e50",\ "topics": [\ "0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925",\ "0x000000000000000000000000b94cb72c9b6282b78107a7c8a5eb74de08177935",\ "0x0000000000000000000000009c12939390052919af3155f41bf4160fd3666a6f"\ ],\ "data": "0xffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff",\ "blockNumber": "0x45cb8ed",\ "transactionHash": "0xa850e378548efda5217e6853fd56cded533d1a61377838abc4ddcc2b13d0acde",\ "transactionIndex": "0x0",\ "blockHash": "0x60d83df96893805e81eca600a67570cea16481dee40d5e9b210eac215352b714",\ "logIndex": "0x0",\ "removed": false\ }\ ] } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings filterIDstring The ID of the filter for which to retrieve changes. Response -------- 200 The array of log objects or transaction hashes that represent the changes detected by the filter. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects The content of this array depends on the type of filter created. object blockHashstring 32-byte hash of the block containing the log, or null if pending. blockNumberstring Block number containing the log, or null if pending. transactionIndexstring Index position of the transaction that generated the log, or null if pending. addressstring 20-byte address from which the log originated. logIndexstring Index position of the log in the block, or null if pending. datastring Non-indexed arguments of the log, in 32-byte segments. removedboolean Indicates if the log was removed due to a chain reorganization (true) or is valid (false). topicsarray\_of\_strings Array of zero to four 32-byte data strings of indexed log arguments. transactionHashstring Hash of the transaction that generated the log, or null if pending. logsBloomstring 256-byte bloom filter for quick log retrieval by light clients. statusinteger Status of the transaction: 1 for success, 0 for failure. effectiveGasPricestring The effective gas price for the transaction. typestring Type of the transaction. [eth\_newFilter](https://drpc.org/docs/base-api/eventlogs/eth_newFilter "eth_newFilter") [eth\_uninstallFilter](https://drpc.org/docs/base-api/eventlogs/eth_uninstallFilter "eth_uninstallFilter") --- # eth_gasPrice - Base eth\_gasPrice - Base ==================== eth\_gasPrice. Retrieve the current gas price --------------------------------------------- eth\_gasPrice - base \[Value: 20CU\] Helps in estimating the cost for transaction fees, ensuring efficient and accurate gas pricing for transactions on the network ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Get the current gas price for transactions * Calculate the cost of transactions with current gas prices * Monitor network gas trends ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires internet access * Requires an accessible node to get data * Depends on the latest network gas price data ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_gasPrice" } ' { { "jsonrpc": "2.0", "id": 1, "result": { "oldestBlock": "0x130b1e6", "reward": [\ [\ "0x5041e1e",\ "0xdd221b80"\ ],\ [\ "0x5041e1e",\ "0xb8346df0"\ ],\ [\ "0x55d4a80",\ "0xb2d05e00"\ ],\ [\ "0x4dd9818",\ "0x3b9aca00"\ ]\ ], "baseFeePerGas": [\ "0x52d80a82c",\ "0x50f43f659",\ "0x50012de8d",\ "0x4e30357d6",\ "0x57efff9e7"\ ], "gasUsedRatio": [\ 0.40875283333333334,\ 0.45308523333333334,\ 0.4091907,\ 0.9987537\ ], "baseFeePerBlobGas": [\ "0x1",\ "0x1",\ "0x1",\ "0x1",\ "0x1"\ ], "blobGasUsedRatio": [\ 0.5,\ 1,\ 0.6666666666666666,\ 1\ ] } } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 Retrieves the current gas price in wei from the latest block. Response params --------------- object idinteger jsonrpcstring resultstring [eth\_estimateGas](https://drpc.org/docs/base-api/gasestimation/eth_estimateGas "eth_estimateGas") [eth\_maxPriorityFeePerGas](https://drpc.org/docs/base-api/gasestimation/eth_maxPriorityFeePerGas "eth_maxPriorityFeePerGas") --- # Base getting unclesn info | dRPC Getting uncles[#](https://drpc.org/docs/base-api/gettinguncles#getting-uncles) ------------------------------------------------------------------------------- Provides methods to retrieve information about uncle blocks. [eth\_getUncleCountByBlockHash](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockHash) : Retrieves the number of uncle blocks for a given block by its hash. [eth\_getUncleCountByBlockNumber](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockNumber) : Returns the number of uncle blocks for a specified block number. These methods allow developers to analyze uncle block occurrences on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_maxPriorityFeePerGas](https://drpc.org/docs/base-api/gasestimation/eth_maxPriorityFeePerGas "eth_maxPriorityFeePerGas") [eth\_getUncleCountByBlockHash](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockHash "eth_getUncleCountByBlockHash") --- # Base transactions info | dRPC Transactions info[#](https://drpc.org/docs/base-api/transactionsinfo#transactions-info) ---------------------------------------------------------------------------------------- Provides methods to retrieve transaction details, counts, and receipts. [eth\_getTransactionByHash](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByHash) : Retrieves transaction details using a transaction hash. [eth\_getTransactionCount](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionCount) : Returns the number of transactions sent from an address. [eth\_getTransactionReceipt](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionReceipt) : Retrieves the receipt of a processed transaction. [eth\_newPendingTransactionFilter](https://drpc.org/docs/base-api/transactionsinfo/eth_newPendingTransactionFilter) : Available only on paid tier. Sets up a filter for monitoring pending transactions. [eth\_getTransactionByBlockHashAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockHashAndIndex) : Retrieves a transaction from a block by hash and index. [eth\_getTransactionByBlockNumberAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockNumberAndIndex) : Retrieves a transaction by block number and index. These methods help track transaction activity and details on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_newBlockFilter](https://drpc.org/docs/base-api/blocksinfo/eth_newBlockFilter "eth_newBlockFilter") [eth\_getTransactionByHash](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByHash "eth_getTransactionByHash") --- # eth_getUncleCountByBlockHash - Base eth\_getUncleCountByBlockHash - Base ==================================== eth\_getUncleCountByBlockHash. Retrieve the number of uncles in a block ----------------------------------------------------------------------- eth\_getUncleCountByBlockHash - base \[Value: 20CU\] Retrieves the number of uncle blocks for a specific block identified by its hash ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Count uncle blocks in a specific block * Verify uncle block count for blockchain analysis * Monitor uncle block occurrences in a given block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid block hash input * Node must be synchronized with the blockchain * Accurate block hash is essential for results ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getUncleCountByBlockHash","params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersstring string hashstring The hash of the block for which to count the uncle blocks. Response -------- 200 The number of uncle blocks associated with the specified block, returned as an integer. Response params --------------- string unclesstring [Getting uncles](https://drpc.org/docs/base-api/gettinguncles "Getting uncles") [eth\_getUncleCountByBlockNumber](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockNumber "eth_getUncleCountByBlockNumber") --- # Base subscriptions info | dRPC Subscriptions[#](https://drpc.org/docs/base-api/subscriptions#subscriptions) ----------------------------------------------------------------------------- Enables real-time monitoring of blockchain events via WebSockets. [eth\_subscribe](https://drpc.org/docs/base-api/subscriptions/eth_subscribe) : Subscribes to events such as new blocks, pending transactions, or log updates. [eth\_unsubscribe](https://drpc.org/docs/base-api/subscriptions/eth_unsubscribe) : Unsubscribes from an active WebSocket event subscription. These methods provide real-time event tracking for applications on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [web3\_sha3](https://drpc.org/docs/base-api/web3/web3_sha3 "web3_sha3") [eth\_subscribe](https://drpc.org/docs/base-api/subscriptions/eth_subscribe "eth_subscribe") --- # eth_subscribe - Base eth\_subscribe - Base ===================== eth\_subscribe. Subscribe to real-time updates for events like new blocks or logs --------------------------------------------------------------------------------- eth\_subscribe - base \[Value: 20CU\] Creates a subscription to receive real-time updates for various events on the blockchain ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Subscribe to new block headers for monitoring * Track blockchain head changes in real-time * Receive updates when new blocks are mined ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * drpc\_pendingTransactions instead of newPendingTransaction * Requires continuous WebSocket connection to the node * Node must support eth\_subscribe method ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust wscat -c wss://base.drpc.org {"jsonrpc":"2.0","id": 2, "method": "eth_subscribe", "params": ["newHeads"]}' { "jsonrpc": "2.0", "id": 1, "result": "0x1234567890abcdef1234567890abcdef" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings subscription\_namestring Specifies the event type for subscription. Supported types include: array of strings newHeadsstring Triggers a notification for each new block header added, including chain reorganizations. logsstring Returns logs matching filter criteria in newly imported blocks. drpc\_pendingTransactionsstring Allows to receive real-time notifications regarding new pending transactions. Functionality expansion is planned. dataobject Is specifically used for logs subscriptions. Arguments like address, multiple addresses, and topics. Response -------- 200 The subscription ID, represented as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultstring [Subscriptions](https://drpc.org/docs/base-api/subscriptions "Subscriptions") [eth\_unsubscribe](https://drpc.org/docs/base-api/subscriptions/eth_unsubscribe "eth_unsubscribe") --- # eth_getTransactionByBlockNumberAndIndex - Base eth\_getTransactionByBlockNumberAndIndex - Base =============================================== eth\_getTransactionByBlockNumberAndIndex. Retrieves a transaction based on its block number and index ----------------------------------------------------------------------------------------------------- eth\_getTransactionByBlockNumberAndIndex - base \[Value: 20CU\] Retrieves a specific transaction from a block by its number and index position ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve transaction details by block number and index * Verify transaction order within a specific block * Audit transactions for a given block and index ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid block number and index * Node must be synchronized with the blockchain * Accurate input parameters are necessary for results ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionByBlockNumberAndIndex","params":["0xc5043f", "0x0"],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings blockNumberstring (optional) Block number as an integer, or string * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. indexstring The index position of the transaction within the block, specified as an integer or a hexadecimal string. Response -------- 200 Detailed transaction object if found, or null if no transaction is found at the given index. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects object blockHashstring Hash of the block containing the transaction. blockNumberstring Block number containing the transaction. transactionIndexstring Position of the transaction in the block (null if pending) noncestring Number of prior transactions from the sender. hashstring 32 Bytes - hash of the transaction. fromstring Transaction hash. gasstring Gas provided by the sender. gasPricestring Gas price provided by the sender in wei. inputstring Data sent with the transaction. rstring ECDSA signature r. sstring ECDSA signature r. tostring Receiver's address (null if contract creation). vstring ECDSA recovery id. valuestring Value transferred in Wei. [eth\_getTransactionByBlockHashAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockHashAndIndex "eth_getTransactionByBlockHashAndIndex") [Debug and trace](https://drpc.org/docs/base-api/debugandtrace "Debug and trace") --- # eth_unsubscribe - Base eth\_unsubscribe - Base ======================= eth\_unsubscribe. Unsubscribe from real-time updates ---------------------------------------------------- eth\_unsubscribe - base \[Value: 20CU\] Unsubscribes from a subscription using the specified subscription ID ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Stop receiving updates for specific blockchain events * Unsubscribe from new block notifications * Cancel pending transaction monitoring subscription ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid subscription ID for unsubscription * Node must support the eth\_unsubscribe method * Continuous connection needed until unsubscription confirmation ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust wscat -c wss://base.drpc.org \ {"id":1,"jsonrpc":"2.0","method":"eth_unsubscribe","params":["0xe9549ac54eeec07f"]} { "jsonrpc":"2.0", "id":1, "result":true } Request params -------------- idinteger jsonrpcstring methodstring Parametersstring string subscription\_idstring The ID of the subscription to unsubscribe from Response -------- 200 Returns true if the subscription was successfully unsubscribed, false otherwise. Response params --------------- object idinteger jsonrpcstring resultboolean [eth\_subscribe](https://drpc.org/docs/base-api/subscriptions/eth_subscribe "eth_subscribe") [Celo API](https://drpc.org/docs/celo-api "Celo API") --- # eth_getUncleCountByBlockNumber - Base eth\_getUncleCountByBlockNumber - Base ====================================== eth\_getUncleCountByBlockNumber. Retrieve the number of uncles in a block by its number --------------------------------------------------------------------------------------- eth\_getUncleCountByBlockNumber - base \[Value: 20CU\] Retrieves the number of uncle blocks for a specific block identified by its number ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Count uncle blocks for specific block number * Verify uncle block count by block number * Analyze uncle blocks in a specific block ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid block number input * Node synchronization with blockchain necessary * Accurate block number essential for results ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getUncleCountByBlockNumber","params":["0xc5043f"],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": "0x0" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings blockNumberstring (optional) Block number as an integer, or string * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. Response -------- 200 The number of uncle blocks associated with the specified block Response params --------------- string unclesstring [eth\_getUncleCountByBlockHash](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockHash "eth_getUncleCountByBlockHash") [Web3](https://drpc.org/docs/base-api/web3 "Web3") --- # eth_getTransactionByBlockHashAndIndex - Base eth\_getTransactionByBlockHashAndIndex - Base ============================================= eth\_getTransactionByBlockHashAndIndex. Retrieve a transaction by block hash and index -------------------------------------------------------------------------------------- eth\_getTransactionByBlockHashAndIndex - base \[Value: 20CU\] Retrieves a specific transaction from a block using the block's hash and the transaction's index position ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve specific contract storage value by address * Verify current state of contract storage slots * Audit smart contract storage for data integrity ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid smart contract address input * Needs accurate specific storage slot key * Depends on the latest blockchain state data ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionByBlockHashAndIndex","params":["0x829df9bb801fc0494abf2f443423a49ffa32964554db71b098d332d87b70a48b","0x0"],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": { "blockHash": "0xbf06c77f6ed9a65441795eb8c2ccd694b3fc9b4d1be6066bf7ed52c73c5ec97c", "blockNumber": "0xfb6d2d", "from": "0x2b94cb7ce403ccc9ca89aea9aa8cddb409e6fb6a", "gas": "0x5208", "gasPrice": "0x2757a4abf6", "maxFeePerGas": "0x314492d449", "maxPriorityFeePerGas": "0x59682f00", "hash": "0x32b8edb39cd1f9d1299253ceb734539745f9bba284c7c7a2391ac62223192c68", "input": "0x", "nonce": "0xa2", "to": "0x514368a3dfb523dd8e0e049d9b22e20eec96eaf7", "transactionIndex": "0x64", "value": "0x16423069e486f18", "type": "0x2", "accessList": [], "chainId": "0x1", "v": "0x0", "r": "0x98695bf77dc2aed3308c913e9a5ac273d1de992f61da7eb7352174b30d9ce2e6", "s": "0x186b72d1ee15e3e76a7ed301062a2da3d93b1727135f063d845dca258445fab1", "yParity": "0x0" } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings blockHashstring The hash of the block containing the transaction. indexstring The index position of the transaction within the block, specified as an integer or hexadecimal string. Response -------- 200 Detailed transaction object if found, or null if no transaction is found at the given index. Response params --------------- object idinteger jsonrpcstring resultobject object blockHashstring Hash of the block containing the transaction. blockNumberstring Block number containing the transaction. transactionIndexstring Position of the transaction in the block (null if pending) noncestring Number of prior transactions from the sender. hashstring 32 Bytes - hash of the transaction. fromstring Transaction hash. gasstring Gas provided by the sender. gasPricestring Gas price provided by the sender in wei. inputstring Data sent with the transaction. rstring ECDSA signature r. sstring ECDSA signature r. tostring Receiver's address (null if contract creation). vstring ECDSA recovery id. valuestring Value transferred in Wei. [eth\_newPendingTransactionFilter](https://drpc.org/docs/base-api/transactionsinfo/eth_newPendingTransactionFilter "eth_newPendingTransactionFilter") [eth\_getTransactionByBlockNumberAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockNumberAndIndex "eth_getTransactionByBlockNumberAndIndex") --- # eth_getTransactionByHash - Base eth\_getTransactionByHash - Base ================================ eth\_getTransactionByHash. Retrieves detailed information about a specific transaction using its hash ----------------------------------------------------------------------------------------------------- eth\_getTransactionByHash - base \[Value: 20CU\] Retrieves detailed information about a specific transaction using its hash ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve transaction details using transaction hash * Verify transaction status and details by hash * Audit transaction data for specific hash ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid transaction hash input * Node must be synchronized with blockchain * Depends on latest blockchain data availability ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionByHash","params":["0xb1fac2cb5074a4eda8296faebe3b5a3c10b48947dd9a738b2fdf859be0e1fbaf"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": { "blockHash": "0x1d59ff54b1eb26b013ce3cb5fc9dab3705b415a67127a003c3e61eb445bb8df2", "blockNumber": "0x5daf3b", "hash": "0x88df016429689c079f3b2f6ad39fa052532c56795b733da78a91ebe6a713944b", "input": "0x68656c6c6f21", "r": "0x1b5e176d927f8e9ab405058b2d2457392da3e20f328b16ddabcebc33eaac5fea", "s": "0x4ba69724e8f69de52f0125ad8b3c5c2cef33019bac3249e2c0a2192766d1721c", "v": "0x25", "gas": "0xc350", "from": "0xa7d9ddbe1f17865597fbd27ec712455208b6b76d", "transactionIndex": "0x41", "to": "0xf02c1c8e6114b1dbe8937a39260b5b0a374432bb", "type": "0x0", "value": "0xf3dbb76162000", "nonce": "0x15", "gasPrice": "0x4a817c800" } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings hashstring The hash of the transaction to retrieve. Response -------- 200 The transaction object if found, or null if no transaction is found with the given hash. Response params --------------- object idinteger jsonrpcstring resultobject object blockHashstring Hash of the block containing the transaction. blockNumberstring Block number containing the transaction. transactionIndexstring Position of the transaction in the block (null if pending) noncestring Number of prior transactions from the sender. hashstring 32 Bytes - hash of the transaction. fromstring Transaction hash. gasstring Gas provided by the sender. gasPricestring Gas price provided by the sender in wei. inputstring Data sent with the transaction. rstring ECDSA signature r. sstring ECDSA signature r. tostring Receiver's address (null if contract creation). vstring ECDSA recovery id. valuestring Value transferred in Wei. [Transactions info](https://drpc.org/docs/base-api/transactionsinfo "Transactions info") [eth\_getTransactionCount](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionCount "eth_getTransactionCount") --- # Base web3 info | dRPC Web3[#](https://drpc.org/docs/base-api/web3#web3) -------------------------------------------------- Provides methods to retrieve network-related data. [web3\_clientVersion](https://drpc.org/docs/base-api/web3/web3_clientVersion) : Returns the version of the Avalanche node client in use. [web3\_sha3](https://drpc.org/docs/base-api/web3/web3_sha3) : Computes the Keccak-256 (SHA3) hash of the provided data. These methods are useful for managing node configurations and ensuring data integrity on the Base network. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) [eth\_getUncleCountByBlockNumber](https://drpc.org/docs/base-api/gettinguncles/eth_getUncleCountByBlockNumber "eth_getUncleCountByBlockNumber") [web3\_clientVersion](https://drpc.org/docs/base-api/web3/web3_clientVersion "web3_clientVersion") --- # eth_newPendingTransactionFilter - Base eth\_newPendingTransactionFilter - Base ======================================= eth\_newPendingTransactionFilter. Method for Optimism creates a filter to capture pending transactions ------------------------------------------------------------------------------------------------------ eth\_newPendingTransactionFilter - base \[Value: 20CU\] Creates a filter to notify when new pending transactions are added to the transaction pool ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Monitor real-time pending transactions in the network * Track new pending transactions for quick validation * Analyze incoming transactions before they are mined ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Available only on paid tier * Node must support pending transaction filters * Accurate pending transaction tracking depends on node performance ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_newPendingTransactionFilter" } ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 The ID of the newly created filter, represented as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultstring [eth\_getTransactionReceipt](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionReceipt "eth_getTransactionReceipt") [eth\_getTransactionByBlockHashAndIndex](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByBlockHashAndIndex "eth_getTransactionByBlockHashAndIndex") --- # eth_maxPriorityFeePerGas - Base eth\_maxPriorityFeePerGas - Base ================================ eth\_maxPriorityFeePerGas. Retrieve the suggested max priority fee per gas -------------------------------------------------------------------------- eth\_maxPriorityFeePerGas - base \[Value: 20CU\] Retrieves the maximum priority fee per gas (in wei) that the user is willing to pay to incentivize miners to include their transaction ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Determine current max priority gas fee * Optimize transaction fees using latest priority fee * Estimate transaction cost for urgent transactions ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires active network connection * Dependent on real-time blockchain data * Node must support EIP-1559 transactions ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_maxPriorityFeePerGas","params":[],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 The maximum priority fee per gas in wei, represented as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects [eth\_gasPrice](https://drpc.org/docs/base-api/gasestimation/eth_gasPrice "eth_gasPrice") [Getting uncles](https://drpc.org/docs/base-api/gettinguncles "Getting uncles") --- # eth_getEstimateGas - Base eth\_estimateGas - Base ======================= eth\_estimateGas. Estimate the gas required for a transaction ------------------------------------------------------------- eth\_getEstimateGas - base \[Value: 20CU\] Calculates the exact amount of gas required, optimizing transaction efficiency and preventing out-of-gas errors ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Estimate the gas needed for a transaction * Plan transactions to use optimal gas amounts * Optimize gas usage ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid addresses * Estimates vary with network conditions * Calculation depends on the node's processing speed ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --request POST \ --url https://base.drpc.org \ --header 'accept: application/json' \ --header 'content-type: application/json' \ --data ' { "id": 1, "jsonrpc": "2.0", "method": "eth_estimateGas", "params": [\ {\ "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",\ "gas": "0x0",\ "gasPrice": "0x9184e72a000",\ "value": "0x0",\ "data": "0x"\ },\ {\ "to": "0xd46e8dd67c5d32be8058bb8eb970870f07244567",\ "gas": "0x0",\ "gasPrice": "0x9184e72a000",\ "value": "0x0",\ "data": "0x"\ }\ ] } ' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray array transactionobject array fromstring (optional) The sender's address. tostring The recipient's address. gasinteger (optional) The gas limit for the transaction. gasPricestring (optional) The gas price in wei. valueinteger (optional) The value sent in wei. datastring (optional) The data sent with the transaction. objectobject A state override set, mapping addresses to their respective states. Each address maps to an object with: array balancestring Simulated balance assigned to the account prior to executing the call. noncestring Simulated nonce assigned to the account before the call. codeinteger Simulated EVM bytecode inserted into the account. stateDiffstring Simulated key-value pairs to override the account's storage slots. Response -------- 200 The estimated gas amount needed for the transaction, returned as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultstring [Gas estimation](https://drpc.org/docs/base-api/gasestimation "Gas estimation") [eth\_gasPrice](https://drpc.org/docs/base-api/gasestimation/eth_gasPrice "eth_gasPrice") --- # eth_getTransactionReceipt - Base eth\_getTransactionReceipt - Base ================================= eth\_getTransactionReceipt. Fetches the receipt of a transaction by its hash ---------------------------------------------------------------------------- eth\_getTransactionReceipt - base \[Value: 20CU\] Retrieves the receipt of a specific transaction by its hash ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve general information about a transaction's details * Track transaction status effectively * Obtain contract address from contract creation transaction ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid transaction hash input * Returns null for pending or unknown transactions * Dependent on node synchronization with the blockchain ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionReceipt","params":["0x85d995eba9763907fdf35cd2034144dd9d53ce32cbec21349d4b12823c6860c5"],"id":1,"jsonrpc":"2.0"}' { "jsonrpc": "2.0", "id": 1, "result": { "transactionHash": "0x8fc90a6c3ee3001cdcbbb685b4fbe67b1fa2bec575b15b0395fea5540d0901ae", "blockHash": "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907", "blockNumber": "0xeb8822", "logsBloom": "0x00000000000100000000008000000000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000000000000000000000000000008008008000000000000000000000000000000000000000000000000000000000000000000004000000000000000000000000010000000000000000000000000000000000000000000000000010002000000000000000400000000000400200001000000000000000000000000040000000000000000000000000002000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000004000000000000000000", "gasUsed": "0x1a14b", "contractAddress": null, "cumulativeGasUsed": "0x76c649", "transactionIndex": "0x4e", "from": "0x5067c042e35881843f2b31dfc2db1f4f272ef48c", "to": "0x3ee18b2214aff97000d974cf647e7c347e8fa585", "type": "0x0", "effectiveGasPrice": "0x2d7003407", "logs": [\ {\ "blockHash": "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907",\ "address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",\ "logIndex": "0x6c",\ "data": "0x000000000000000000000000000000000000000000000000000000001debea42",\ "removed": false,\ "topics": [\ "0xddf252ad1be2c89b69c2b068fc378daa952ba7f163c4a11628f55a4df523b3ef",\ "0x0000000000000000000000005067c042e35881843f2b31dfc2db1f4f272ef48c",\ "0x0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585"\ ],\ "blockNumber": "0xeb8822",\ "transactionIndex": "0x4e",\ "transactionHash": "0x8fc90a6c3ee3001cdcbbb685b4fbe67b1fa2bec575b15b0395fea5540d0901ae"\ },\ {\ "blockHash": "0x58a945e1558810523df00490ff28cbe111b37851c44679ce5be1eeaebb4b4907",\ "address": "0x98f3c9e6e3face36baad05fe09d375ef1464288b",\ "logIndex": "0x6d",\ "data": "0x000000000000000000000000000000000000000000000000000000000001371e000000000000000000000000000000000000000000000000000000006eca00000000000000000000000000000000000000000000000000000000000000000080000000000000000000000000000000000000000000000000000000000000000f000000000000000000000000000000000000000000000000000000000000008501000000000000000000000000000000000000000000000000000000001debea42000000000000000000000000a0b86991c6218b36c1d19d4a2e9eb0ce3606eb48000267c46aa713cfe47608dd1c16f8a0325208df084c3cbebf9f366ad0eafc2653e4000100000000000000000000000000000000000000000000000000000000001e8542000000000000000000000000000000000000000000000000000000",\ "removed": false,\ "topics": [\ "0x6eb224fb001ed210e379b335e35efe88672a8ce935d981a6896b27ffdf52a3b2",\ "0x0000000000000000000000003ee18b2214aff97000d974cf647e7c347e8fa585"\ ],\ "blockNumber": "0xeb8822",\ "transactionIndex": "0x4e",\ "transactionHash": "0x8fc90a6c3ee3001cdcbbb685b4fbe67b1fa2bec575b15b0395fea5540d0901ae"\ }\ ], "status": "0x1" } } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings hashstring The hash of the transaction for which the receipt is to be retrieved. Response -------- 200 The transaction receipt object if the transaction is found, or null if not. Response params --------------- object idinteger jsonrpcstring resultobject object blockHashstring Hash of the block containing the transaction. blockNumberstring Block number containing the transaction. transactionIndexstring Position of the transaction in the block (null if pending) noncestring Number of prior transactions from the sender. hashstring 32 Bytes - hash of the transaction. fromstring Transaction hash. tostring Receiver's address (null if contract creation). cumulativeGasUsedstring Total gas used when the transaction was executed in the block. gasUsedstring Gas used by this specific transaction alone. contractAddressstring Address of the contract created, if applicable. logsarray\_of\_objects Array of log objects, which this transaction generated. object blockHashstring 32 Bytes - hash of the block where this log was in. null when its pending. null when its pending log blockNumberstring The block number where this log was in. null when its pending. null when its pending log. transactionIndexstring Integer of the transactions index position log was created from. null when its pending log. addressstring 20 Bytes - address from which this log originated. logIndexstring Integer of the log index position in the block. null when its pending log. datastring Contains one or more 32 Bytes non-indexed arguments of the log. removedboolean true when the log was removed, due to a chain reorganization. false if its a valid log. topicsarray\_of\_strings Array of zero to four 32 Bytes DATA of indexed log arguments. In solidity: The first topic is the hash of the signature of the event (e.g. Deposit(address,bytes32,uint256)), except you declare the event with the anonymous specifier. transactionHashstring Hash of the transactions this log was created from. null when its pending log. logsBloomstring Bloom filter for the logs. statusinteger ETransaction status, either 1 (success) or 0 (failure) effectiveGasPricestring typestring [eth\_getTransactionCount](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionCount "eth_getTransactionCount") [eth\_newPendingTransactionFilter](https://drpc.org/docs/base-api/transactionsinfo/eth_newPendingTransactionFilter "eth_newPendingTransactionFilter") --- # web3_sha3 - Base web3\_sha3 - Base ================= web3\_sha3. Traces the execution of all transactions in a block specified by its hash, providing detailed execution traces -------------------------------------------------------------------------------------------------------------------------- web3\_sha3 - base \[Value: 20CU\] Traces the execution of all transactions in a block specified by its hash ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Generate a Keccak-256 hash of input data * Verify data integrity by hashing * Create unique identifiers based on input content ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires input data to be in hexadecimal format * Input size affects processing time * Returned hash may not be human-readable ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl --location 'https://base.drpc.org' \ --header 'Content-Type: application/json' \ --data '{ "jsonrpc": "2.0", "method": "web3_sha3", "params": ["0x68656c6c6f20776f726c64"], "id": 1 }' { "jsonrpc": "2.0", "id": 1, "result": "0x47173285a8d7341e3180db76a8f0a1048e8c9b84c0553e149eb1e8d330baf94d" } Request params -------------- idinteger jsonrpcstring methodstring Parametersstring string datastring The data to be hashed. The input data should be a hexadecimal string. Response -------- 200 The version of the client, including the name and version number, as a string Response params --------------- object idinteger jsonrpcstring resultstring [web3\_clientVersion](https://drpc.org/docs/base-api/web3/web3_clientVersion "web3_clientVersion") [Subscriptions](https://drpc.org/docs/base-api/subscriptions "Subscriptions") --- # eth_getTransactionCount - Base eth\_getTransactionCount - Base =============================== eth\_getTransactionCount. returns the number of transactions sent from a specified address ------------------------------------------------------------------------------------------ eth\_getTransactionCount - base \[Value: 20CU\] Retrieves the number of transactions sent from a specified address ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve total transactions count from specific address * Verify account activity by counting transactions * Audit the number of sent transactions ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires valid address input * Node synchronization with blockchain required. * Depends on the latest blockchain state. ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"method":"eth_getTransactionCount","params":["0x8D97689C9818892B700e27F316cc3E41e17fBeb9", "latest"],"id":1,"jsonrpc":"2.0"}' ' { "jsonrpc": "2.0", "id": 1, "result": "0x31" } Request params -------------- idinteger jsonrpcstring methodstring Parametersarray of strings array of strings addressstring The address for which to retrieve the transaction count. blockNumberstring (optional) Block number as an integer, or string * latest \[default\] \- The most recent block in the blockchain (default). * earliest \- The first block, also known as the genesis block. * pending \- Transactions that have been broadcast but not yet included in a block. Response -------- 200 The number of transactions sent from the specified address, returned as a hexadecimal string. Response params --------------- object idinteger jsonrpcstring resultarray\_of\_objects [eth\_getTransactionByHash](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionByHash "eth_getTransactionByHash") [eth\_getTransactionReceipt](https://drpc.org/docs/base-api/transactionsinfo/eth_getTransactionReceipt "eth_getTransactionReceipt") --- # web3_clientVersion - Base web3\_clientVersion - Base ========================== web3\_clientVersion. Retrieves the version information of the connected client ------------------------------------------------------------------------------ web3\_clientVersion - base \[Value: 20CU\] Retrieves the current version of the client that the node is running ![Use cases](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FUseCases.e08da8f4.png&w=32&q=75) Use cases --------- * Retrieve the version of the connected client * Verify client software version for compatibility checks * Identify node client version for troubleshooting purposes ![Constraints](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconConstraints.6a2e6f48.png&w=32&q=75) Constraints ----------- * Requires network access to the node * Node must support web3\_clientVersion method * Accurate response depends on node's current state ![Get started](https://drpc.org/docs/_next/static/media/IconGetStartedCode.750b2daa.svg) Unlock Access to 100+ chains Boost your app's speed and reliability with dRPC - get your access API key [Get started for free](https://drpc.org/login) Language -------- ![Shell](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconShell.d1f66e81.png&w=64&q=75) ### Shell ![JS](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconJS.c92dc758.png&w=64&q=75) ### JavaScript ![Node](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconNode.fa07e603.png&w=64&q=75) ### Node.js ![Go](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconGo.55544adf.png&w=64&q=75) ### Go ![Python](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconPython.14fd45e4.png&w=64&q=75) ### Python ![Rust](https://drpc.org/docs/_next/image?url=%2Fdocs%2F_next%2Fstatic%2Fmedia%2FIconRust.3ee01b0b.png&w=64&q=75) ### Rust curl https://base.drpc.org \ -X POST \ -H "Content-Type: application/json" \ --data '{"jsonrpc":"2.0","method":"web3_clientVersion","params":[],"id":1}' { "jsonrpc": "2.0", "id": 1, "result": "0xb1770efb14906e509893b6190359658208ae64d0c56e22f748a1b0869885559e" } Request params -------------- idinteger jsonrpcstring methodstring ParametersThis method does not accept any parameters. Response -------- 200 The version of the client, including the name and version number, as a string Response params --------------- object idinteger jsonrpcstring resultstring [Web3](https://drpc.org/docs/base-api/web3 "Web3") [web3\_sha3](https://drpc.org/docs/base-api/web3/web3_sha3 "web3_sha3") ---