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.
Ethereum like
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 |
Bitcoin
Method | CU |
---|---|
getblockhash | 30 |
getrawtransaction | 30 |
gettransaction | 30 |
getblocknumber | 30 |
getblockcount | 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 |
getTokenOwnersByDelegate | 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 |
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 |
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 |