Compute units
A compute unit is a measurement of the computational resources required to fulfill a particular request for data via JSON RPC protocol. DRPC uses CUs to calculate the cost of a request, and also to track the workload of each data provider.
Methods costs in CU
Here is an actual method list with its CU pricing. This table is correct for all blockchains and networks that DRPC support. If you call a method that is not a part of this table, the default cost is 100 CU. If you think something is wrong, ask in our discord (opens in a new tab).
Methods that require archive nodes have the same price as full nodes.
Method | CU |
---|---|
eth_accounts | 0 |
eth_chainId | 0 |
eth_syncing | 0 |
net_version | 0 |
net_listening | 0 |
net_peerCount | 0 |
eth_protocolVersion | 0 |
eth_hashrate | 0 |
eth_coinbase | 0 |
eth_mining | 0 |
web3_clientVersion | 0 |
eth_blockNumber | 10 |
eth_unsubscribe | 10 |
eth_uninstallFilter | 10 |
eth_subscribe | 10 |
eth_getTransactionByHash | 11 |
eth_getProof | 11 |
eth_getBalance | 11 |
eth_getBlockTransactionCountByNumber | 11 |
eth_getTransactionCount | 11 |
eth_getTransactionByBlockNumberAndIndex | 13 |
eth_getStorageAt | 14 |
eth_gasPrice | 15 |
eth_feeHistory | 15 |
eth_getBlockTransactionCountByHash | 15 |
eth_getUncleCountByBlockNumber | 15 |
eth_getUncleByBlockNumberAndIndex | 15 |
eth_getUncleCountByBlockHash | 15 |
eth_getUncleByBlockHashAndIndex | 15 |
eth_maxPriorityFeePerGas | 16 |
eth_getTransactionByBlockHashAndIndex | 19 |
eth_newBlockFilter | 20 |
eth_getFilterChanges | 20 |
trace_get | 20 |
eth_newPendingTransactionFilter | 20 |
eth_newFilter | 20 |
eth_getBlockByHash | 21 |
eth_call | 21 |
eth_getCode | 24 |
eth_getBlockByNumber | 24 |
eth_getTransactionReceipt | 30 |
eth_createAccessList | 30 |
eth_estimateGas | 60 |
eth_getBlockByNumber#full | 60 |
eth_getLogs | 60 |
eth_getBlockByHash#full | 60 |
trace_call | 60 |
eth_getFilterLogs | 60 |
trace_filter | 75 |
trace_rawTransaction | 75 |
eth_getBlockReceipts | 80 |
debug_traceBlockByNumber | 90 |
trace_block | 90 |
trace_replayBlockTransactions | 90 |
trace_replayBlockTransactions#vmTrace | 300 |
debug_traceBlockByHash | 90 |
trace_transaction | 90 |
debug_traceTransaction | 90 |
trace_replayTransaction | 90 |
trace_replayTransaction#vmTrace | 300 |
trace_callMany | 90 |
eth_sendRawTransaction | 90 |