Compute Units (CUs)
Explanation for Compute Unite and how it works
Compute Unit is a way to measure your RPC request usage on MegaNode. We provide each MegaNode user a monthly quota of usage, and each method will consume a cost based on the resource required for execution. You can think of this as you have a balance in your account and each method has its own price. This will be deducted from your account upon submission of RPC requests. The price of each RPC method is called Compute Unit. Based on this calculation, we enable our users to utilize the monthly request quota more efficiently. In short, you only pay for what you use.
For different subscription tiers, there may have different monthly usage quotas.

CUs of RPC Method

Below are the CUs for each method. We define the CUs based on the resource required for execution.

Supported Method

BSC, Ethereum & Polygon
Method
CUs
eth_accounts
5
eth_blockNumber
5
eth_chainId
5
eth_syncing
5
net_listening
5
net_version
5
web3_clientVersion
5
eth_subscribe
10
eth_uninstallFilter
10
eth_unsubscribe
10
web3_sha3
10
eth_gasPrice
15
eth_getBalance
15
eth_getBlockByNumber
15
eth_getCode
15
eth_getStorageAt
15
eth_getTransactionByBlockHashAndIndex
15
eth_getTransactionByBlockNumberAndIndex
15
eth_getTransactionByHash
15
eth_getTransactionReceipt
15
Ethereum only
Method
CUs
eth_protocolVersion
5
eth_createAccessList
10
eth_feeHistory
10
eth_maxPriorityFeePerGas
10
eth_getUncleByBlockHashAndIndex
15
eth_getUncleByBlockNumberAndIndex
15
eth_getUncleCountByBlockHash
15
eth_getUncleCountByBlockNumber
15
Polygon API
Method
CUs
bor_getAuthor
15
bor_getCurrentProposer
15
bor_getCurrentValidators
15
bor_getRootHash
15
bor_getSignersAtHash
15
eth_getTransactionReceiptsByBlock
250
โ€‹
Enhanced API
Method
CUs
eth_getDiffAccounts
1000
eth_getDiffAccountsWithScope
1200
nr_getTokenBalance20
25
nr_getTokenBalance721
25
nr_getTokenBalance1155
25
nr_getTokenMeta
80
nr_getTotalSupply20
25
nr_getTotalSupply721
25
nr_getTransactionReceiptsByBlockHash
250
nr_getTransactionReceiptsByBlockNumber
250

Unsupported Method

If MegaNode received requests using unsupported RPC method, the CUs are 2 for each request.

How does MegaNode calculate my monthly quota?

We accumulate the monthly usage by account. Regardless of how many apps you created in your account, we calculate the usage by summing the entire usage across apps.

Websocket subscription

MegaNode charges the websocket subscription by bandwidth. For every byte, the cost is 0.04 CU.

What happens if I run out of monthly quota?

If you keep sending RPC request even though you've reached the monthly quota, the request will fail and you will receive http 429 error and an error code: -32005
{
"jsonrpc":"2.0",
"id":1,
"error":{
"code":-32005,
"message":"limit exceeded"
}
}

What happens if I send a request with incorrect payload?

If you're sending a RPC request with an incorrect payload, it will cost:
  • If incorrect method: it will cost you 2 usage for incorrect or unsupported RPC method.
  • If other parameters are incorrect, or execution failed due to the wrong payload: it will consume the original cost of each method.

How much monthly quota do I have?

We provide MegaNode users different tiers of monthly quota according to their pricing plan. Pleaserefer to our pricing plan.
โ€‹