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. The cost is $0.30 for 1M CU. 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).
Ethereum and EVM: Polygon, Optimism, Base, BNB Smart Chain, Arbitrum#
Method | CU |
---|---|
eth_accounts | 0 |
eth_blockNumber | 10 |
eth_call | 21 |
eth_chainId | 0 |
eth_coinbase | 0 |
eth_createAccessList | 30 |
eth_estimateGas | 60 |
eth_feeHistory | 15 |
eth_gasPrice | 15 |
eth_getBalance | 11 |
eth_getBlockByHash | 21 |
eth_getBlockByHash#full | 60 |
eth_getBlockByNumber | 24 |
eth_getBlockByNumber#full | 60 |
eth_getBlockReceipts | 80 |
eth_getBlockTransactionCountByHash | 15 |
eth_getBlockTransactionCountByNumber | 11 |
eth_getCode | 24 |
eth_getFilterChanges | 20 |
eth_getFilterLogs | 60 |
eth_getLogs | 60 |
eth_getProof | 11 |
eth_getStorageAt | 14 |
eth_getTransactionByBlockHashAndIndex | 19 |
eth_getTransactionByBlockNumberAndIndex | 13 |
eth_getTransactionByHash | 11 |
eth_getTransactionCount | 11 |
eth_getTransactionReceipt | 30 |
eth_getUncleByBlockHashAndIndex | 15 |
eth_getUncleByBlockNumberAndIndex | 15 |
eth_getUncleCountByBlockHash | 15 |
eth_getUncleCountByBlockNumber | 15 |
eth_hashrate | 0 |
eth_maxPriorityFeePerGas | 16 |
eth_mining | 0 |
eth_newBlockFilter | 20 |
eth_newFilter | 20 |
eth_newPendingTransactionFilter | 20 |
eth_protocolVersion | 0 |
eth_sendRawTransaction | 90 |
eth_subscribe | 10 |
eth_syncing | 0 |
eth_uninstallFilter | 10 |
eth_unsubscribe | 10 |
net_listening | 0 |
net_peerCount | 0 |
net_version | 0 |
debug_traceBlockByHash | 90 |
debug_traceBlockByNumber | 90 |
debug_traceCall | 90 |
debug_traceTransaction | 90 |
trace_block | 90 |
trace_call | 60 |
trace_callMany | 90 |
trace_filter | 75 |
trace_get | 20 |
trace_rawTransaction | 75 |
trace_replayBlockTransactions | 90 |
trace_replayBlockTransactions#vmTrace | 300 |
trace_replayTransaction | 90 |
trace_replayTransaction#vmTrace | 300 |
trace_transaction | 90 |
txpool_content | 1000 |
bor_getAuthor | 10 |
bor_getCurrentProposer | 10 |
bor_getCurrentValidators | 10 |
bor_getRootHash | 10 |
bor_getSignersAtHash | 10 |
web3_clientVersion | 0 |
web3_sha3 | 10 |
Bitcoin#
Method | CU |
---|---|
getblockhash | 30 |
getrawtransaction | 30 |
gettransaction | 30 |
getblocknumber | 30 |
getblockcount | 30 |
estimatesmartfee | 30 |
getblockchaininfo | 30 |
getnetworkinfo | 0 |
getbestblockhash | 30 |
getblock | 30 |
gettxout | 30 |
listunspent | 30 |
sendrawtransaction | 100 |
getreceivedbyaddress | 30 |
getmemorypool | 100 |
getconnectioncount | 0 |
Solana#
Method | Cost |
---|---|
getLeaderSchedule | 5 |
requestAirdrop | 5 |
getVoteAccounts | 5 |
getBlockCommitment | 5 |
getBlocksWithLimit | 5 |
getHealth | 5 |
getIdentity | 5 |
getLatestBlockhash | 7 |
getSlot | 7 |
getInflationRate | 8 |
getMaxRetransmitSlot | 8 |
getRecentPerformanceSamples | 8 |
getEpochInfo | 9 |
getTokenAccountBalance | 9 |
getBlockTime | 9 |
getHighestSnapshotSlot | 9 |
sendTransaction | 10 |
getEpochSchedule | 10 |
getStakeActivation | 10 |
getMaxShredInsertSlot | 10 |
getVersion | 10 |
isBlockhashValid | 10 |
getAccountInfo | 10 |
getFeeForMessage | 10 |
getFees | 10 |
getConfirmedBlocks | 10 |
getTokenLargestAccounts | 10 |
getTokenAccountsByDelegate | 10 |
getInflationGovernor | 10 |
getSlotLeader | 11 |
getMultipleAccounts | 11 |
minimumLedgerSlot | 11 |
getBlockHeight | 11 |
simulateTransaction | 11 |
getFeeCalculatorForBlockhash | 11 |
getSignatureStatuses | 11 |
getRecentBlockhash | 12 |
getBlocks | 12 |
getTokenAccountsByOwner | 12 |
getMinimumBalanceForRentExemption | 12 |
getBalance | 12 |
getGenesisHash | 13 |
getBlockProduction | 13 |
getTokenSupply | 14 |
getTransactionCount | 16 |
getSlotLeaders | 16 |
getRecentPrioritizationFees | 20 |
getClusterNodes | 23 |
getSignaturesForAddress | 28 |
getFirstAvailableBlock | 33 |
getConfirmedSignaturesForAddress2 | 35 |
getConfirmedTransaction | 38 |
getTransaction | 59 |
getBlock | 66 |
getProgramAccounts | 117 |
getConfirmedBlock | 151 |
getInflationReward | 341 |
getSupply | 822 |
getLargestAccounts | 3000 |
accountSubscribe | 10 |
accountUnsubscribe | 0 |
blockSubscribe | 10 |
blockUnsubscribe | 0 |
logsSubscribe | 10 |
logsUnsubscribe | 0 |
programSubscribe | 10 |
programUnsubscribe | 0 |
signatureSubscribe | 10 |
signatureUnsubscribe | 0 |
slotSubscribe | 10 |
slotUnsubscribe | 0 |
Starknet#
Method | Cost |
---|---|
starknet_getBlockWithTxHashes | 16 |
starknet_getBlockWithTxs | 16 |
starknet_getStateUpdate | 21 |
starknet_getStorageAt | 17 |
starknet_getTransactionByHash | 17 |
starknet_getTransactionByBlockIdAndIndex | 15 |
starknet_getTransactionReceipt | 15 |
starknet_getClass | 19 |
starknet_getClassHashAt | 19 |
starknet_getClassAt | 19 |
starknet_getBlockTransactionCount | 20 |
starknet_call | 26 |
starknet_blockNumber | 10 |
starknet_blockHashAndNumber | 10 |
starknet_chainId | 10 |
starknet_pendingTransactions | 50 |
starknet_syncing | 10 |
starknet_getNonce | 26 |
starknet_getEvents | 75 |
starknet_estimateFee | 87 |
starknet_addInvokeTransaction | 250 |
starknet_addDeclareTransaction | 250 |
starknet_addDeployAccountTransaction | 250 |
starknet_estimateMessageFee | 87 |
Varanet#
Method | Cost |
---|---|
author_pendingExtrinsics | 50 |
author_removeExtrinsic | 50 |
chain_getBlock | 50 |
chain_getBlockHash | 50 |
chain_getFinalisedHead | 50 |
chain_getFinalizedHead | 50 |
chain_getHead | 50 |
chain_getHeader | 50 |
chain_getRuntimeVersion | 50 |
childstate_getKeys | 50 |
childstate_getKeysPaged | 50 |
childstate_getKeysPagedAt | 50 |
childstate_getStorage | 50 |
childstate_getStorageEntries | 50 |
childstate_getStorageHash | 50 |
childstate_getStorageSize | 50 |
gear_calculateHandleGas | 50 |
gear_calculateInitCreateGas | 50 |
gear_calculateInitUploadGas | 50 |
gear_calculateReplyGas | 50 |
gear_readMetahash | 50 |
gear_readState | 50 |
gear_readStateBatch | 50 |
gear_readStateUsingWasm | 50 |
gear_readStateUsingWasmBatch | 50 |
grandpa_proveFinality | 50 |
grandpa_roundState | 50 |
payment_queryFeeDetails | 50 |
payment_queryInfo | 50 |
rpc_modules | 50 |
state_call | 50 |
state_callAt | 50 |
state_getChildReadProof | 50 |
state_getKeys | 50 |
state_getKeysPaged | 50 |
state_getKeysPagedAt | 50 |
state_getMetadata | 50 |
state_getPairs | 50 |
state_getReadProof | 50 |
state_getRuntimeVersion | 50 |
state_getStorage | 50 |
state_getStorageAt | 50 |
state_getStorageHash | 50 |
state_getStorageHashAt | 50 |
state_getStorageSize | 50 |
state_getStorageSizeAt | 50 |
state_queryStorage | 50 |
state_queryStorageAt | 50 |
state_traceBlock | 50 |
state_trieMigrationStatus | 50 |
system_chain | 50 |
author_submitExtrinsic | 100 |
subscribe_newHead | 50 |
unsubscribe_newHead | 50 |
chain_subscribeAllHeads | 50 |
chain_unsubscribeAllHeads | 50 |
chain_subscribeFinalizedHeads | 50 |
chain_unsubscribeFinalizedHeads | 50 |
chain_subscribeNewHeads | 50 |
chain_unsubscribeNewHeads | 50 |
chain_subscribeRuntimeVersion | 50 |
chain_unsubscribeRuntimeVersion | 50 |
harmony#
Method | Cost |
---|---|
hmy_getStakingTransactionByBlockHashAndIndex | 19 |
hmy_getStakingTransactionByHash | 11 |
hmy_getCXReceiptByHash | 11 |
hmy_getBlockTransactionCountByHash | 15 |
hmy_getTransactionByHash | 11 |
hmy_getTransactionByBlockHashAndIndex | 19 |
hmy_getBlockByHash | 21 |
hmy_getStakingTransactionByBlockNumberAndIndex | 13 |
hmy_getTransactionReceipt | 30 |
hmy_getBlockTransactionCountByNumber | 11 |
hmy_getTransactionByBlockNumberAndIndex | 13 |
hmy_getBlockByNumber | 24 |
hmy_getAllValidatorInformationByBlockNumber | 10 |
hmy_sendRawStakingTransaction | 90 |
hmy_sendRawTransaction | 90 |
hmy_getTransactionCount | 11 |
hmy_newFilter | 20 |
hmy_newBlockFilter | 20 |
hmy_newPendingTransactionFilter | 20 |
hmy_getFilterLogs | 60 |
hmy_getFilterChanges | 20 |
hmy_getPendingCrossLinks | 10 |
hmy_getCurrentTransactionErrorSink | 5 |
hmy_getPendingCXReceipts | 30 |
hmy_pendingTransactions | 30 |
hmy_getTransactionsHistory | 60 |
hmy_getBlocks | 60 |
hmy_getBalanceByBlockNumber | 11 |
hmy_getBalance | 11 |
hmy_getLogs | 60 |
hmy_estimateGas | 60 |
hmy_getStorageAt | 14 |
hmy_call | 21 |
hmy_getCode | 24 |
hmy_isLastBlock | 5 |
hmy_latestHeader | 20 |
hmy_blockNumber | 10 |
hmy_gasPrice | 15 |
hmy_getEpoch | 10 |
hmy_epochLastBlock | 10 |
hmy_getShardingStructure | 20 |
hmy_syncing | 0 |
hmy_getLeader | 5 |
hmy_getCirculatingSupply | 5 |
hmy_getTotalSupply | 5 |
hmy_getStakingNetworkInfo | 15 |
hmy_getAllValidatorInformation | 30 |
hmy_getDelegationsByValidator | 15 |
hmy_getDelegationsByDelegatorAndValidator | 15 |
hmy_getDelegationsByDelegator | 15 |
hmy_getValidatorMetrics | 15 |
hmy_getMedianRawStakeSnapshot | 5 |
hmy_getElectedValidatorAddresses | 5 |
hmy_getAllValidatorAddresses | 10 |
hmy_getCurrentStakingErrorSink | 5 |
hmy_getValidatorInformation | 15 |
hmy_getSignedBlocks | 5 |
hmy_getValidators | 10 |
hmy_isBlockSigner | 5 |
hmy_getBlockSigners | 10 |
hmyv2_getBalanceByBlockNumber | 11 |
hmyv2_getTransactionCount | 11 |
hmyv2_getBalance | 11 |
hmyv2_getCurrentTransactionErrorSink | 5 |
hmyv2_getPendingCrossLinks | 10 |
hmyv2_getPendingCXReceipts | 30 |
hmyv2_pendingTransactions | 30 |
hmyv2_getTransactionsHistory | 60 |
hmyv2_getBlocks | 60 |
hmyv2_blockNumber | 10 |
hmyv2_gasPrice | 15 |
hmyv2_getEpoch | 10 |
hmyv2_getValidators | 10 |
hmyv2_getStakingTransactionByBlockHashAndIndex | 19 |
hmyv2_getStakingTransactionByBlockNumberAndIndex | 13 |
hmyv2_getStakingTransactionByHash | 11 |
hmyv2_getTransactionReceipt | 30 |
hmyv2_getBlockTransactionCountByHash | 15 |
hmyv2_getBlockTransactionCountByNumber | 11 |
hmyv2_getTransactionByHash | 11 |
hmyv2_getTransactionByBlockNumberAndIndex | 13 |
hmyv2_getTransactionByBlockHashAndIndex | 19 |
hmyv2_getBlockByNumber | 24 |
hmyv2_getBlockByHash | 21 |
hmyv2_getCXReceiptByHash | 11 |
zkevm#
Method | Cost |
---|---|
zkevm_consolidatedBlockNumber | 10 |
zkevm_isBlockConsolidated | 5 |
zkevm_isBlockVirtualized | 5 |
zkevm_batchNumberByBlockNumber | 10 |
zkevm_batchNumber | 10 |
zkevm_virtualBatchNumber | 10 |
zkevm_verifiedBatchNumber | 10 |
zkevm_getBatchByNumber | 15 |
zkevm_getBroadcastURI | 5 |
zksync#
Method | Cost |
---|---|
zks_estimateFee | 60 |
zks_estimateGasL1ToL2 | 60 |
zks_getAllAccountBalances | 11 |
zks_getBlockDetails | 20 |
zks_getBridgeContracts | 10 |
zks_getBytecodeByHash | 500 |
zks_getConfirmedTokens | 30 |
zks_getL1BatchBlockRange | 10 |
zks_getL1BatchDetails | 20 |
zks_getL2ToL1LogProof | 30 |
zks_getL2ToL1MsgProof | 30 |
zks_getMainContract | 10 |
zks_getRawBlockTransactions | 20 |
zks_getTestnetPaymaster | 10 |
zks_getTokenPrice | 10 |
zks_getTransactionDetails | 11 |
zks_L1BatchNumber | 10 |
zks_L1ChainId | 5 |
Linea#
Method | Cost |
---|---|
linea_estimateGas | 60 |
NEAR#
Method | Cost |
---|---|
block | 10 |
chunk | 10 |
gas_price | 10 |
network_info | 10 |
query | 10 |
send_tx | 20 |
status | 10 |
tx | 10 |
validators | 10 |
Cosmos#
Method | Cost |
---|---|
abci_info | 20 |
abci_query | 20 |
block_by_hash | 20 |
block_results | 20 |
block_search | 20 |
blockchain | 20 |
broadcast_tx | 20 |
broadcast_tx_commit | 20 |
check_tx | 20 |
commit | 20 |
consensus_params | 20 |
consensus_state | 20 |
dump_consensus_state | 20 |
genesis_chunked | 20 |
header | 20 |
header_by_hash | 20 |
health | 20 |
lag_status | 20 |
num_unconfirmed_txs | 20 |
status | 20 |
tx | 20 |
tx_search | 20 |