Skip to main content

Don't have an RPC Node yet?

Start using RPC Nodes in your project today.

Get your free RPC Node
Version: 2.2

RPC Node Compute Units (CU)

All Moralis plans come with generous monthly limits on the number of requests you can make. The specific number of included requests depends on the plan you choose. Please check the pricing page for details on the different plans.

Some API requests are more computationally expensive than others. To ensure fair usage and pricing, heavier requests are assigned higher Compute Unit (CU) weights, meaning you only pay for what you use.


What is a Compute Unit (CU)?​

A Compute Unit (CU) is a measure of computational load assigned to different API requests. Each request is assigned a CU Weight and an optional Archive CU Weight (if you're querying historical data or archive nodes). The weight of the request will be deducted from your total available CUs.


CU Pricing Overview​

Each RPC method has a specific CU Weight that reflects the computational cost of the request. Heavier operations consume more CUs, and this affects the total number of requests you can make within your plan. Archive requests (queries made to archive nodes) are often more expensive, and thus, have a higher Archive CU Weight.

Here’s a detailed breakdown of the CU pricing for different standard RPC methods:

RPC MethodCU WeightArchive CU Weight (if applicable)
eth_blockNumber33
eth_call312
eth_chainId33
eth_createAccessList33
eth_estimateGas55
eth_feeHistory33
eth_gasPrice33
eth_getBalance312
eth_getBlockByHash1212
eth_getBlockByNumber312
eth_getBlockTransactionCountByHash1212
eth_getBlockTransactionCountByNumber312
eth_getBlockReceipts312
eth_getCode312
eth_getLogs1212
eth_getProof312
eth_getStorageAt312
eth_getTransactionByHash1212
eth_getTransactionByBlockHashAndIndex1212
eth_getTransactionByBlockNumberAndIndex312
eth_getTransactionCount28
eth_getTransactionReceipt88
eth_getUncleByBlockHashAndIndex88
eth_getUncleByBlockNumberAndIndex28
eth_getUncleCountByBlockHash88
eth_getUncleCountByBlockNumber28
eth_maxPriorityFeePerGas22
eth_sendRawTransaction33

Extended RPC Methods and Compute Units​

Moralis also provides Extended RPC Methods that offer more advanced data retrieval options. These methods are more computationally intensive, and therefore have higher CU weights associated with them. Below is a list of the available Extended RPC Methods and their corresponding CU weights:

Custom MethodDescriptionAPI MappingCU Weight
eth_getTransactionsGet native transactions by wallet address.getWalletTransactions15
eth_getDecodedTransactionsGet wallet history by wallet address.getWalletHistory30
eth_getTokenBalancesGet ERC20 token balances by wallet.getWalletTokenBalancesPrice25
eth_getTokenPriceGet ERC20 token price by token address.getTokenPrice25
eth_getTokenMetadataGet ERC20 token metadata by token address.getTokenMetadata8
eth_getNFTBalancesGet NFTs by wallet address.getWalletNFTs20
eth_getNFTCollectionsGet NFT collections by wallet address.getWalletNFTCollections20

Archive Nodes and CU Weight​

Archive Nodes store historical blockchain data that extends far beyond the most recent blocks. Because of the additional computational and storage resources required to maintain archive nodes, querying these nodes comes with a higher Archive CU Weight. If your use case involves accessing deep historical data, be mindful of the increased CU cost.


Optimize Your CU Usage​

To maximize your CU allocation, you can:

  • Batch Requests: Where possible, batch multiple requests into a single API call. Just note that batch requests have a maximum size of 20.
  • Limit Block Range: The default block range for queries is 100 blocks. Requesting larger block ranges or querying archive data will result in higher CU consumption.
  • Monitor Usage: Regularly track your CU usage in the Moralis dashboard to avoid hitting your rate limits unexpectedly.

Need Higher Limits?​

If you find that your use case requires more CUs than your current plan offers, consider upgrading to a higher plan or reaching out to our support team for custom solutions.

For more information on rate limits and usage caps, visit our FAQ.