Billing & Rate Limits
Important note regarding rate limits when using Moralis Services.
It's important you study rate limits for your plan and the different services that you use. Please email [email protected] if you have any questions!

Abuse prevention

If you start getting Cloudflare errors such as Cloudflare error 1020 - it's most likely you are being flagged by our abuse prevention system and Cloudflare blocks your access on our behalf.
You may also be seeing other error messages.
Below are a few scenarios where you get temporarily banned.
  1. 1.
    If you are sending requests although your key is already rate-limited we may temporarily ban you. For example, let's say your plan allows you to do 30 requests per second. If you try to do 200 requests in the same second - you will most likely get temporarily banned.
  2. 2.
    Use one key per project. For example, if you create 100 free accounts and send requests using the keys from these accounts - all accounts tied to the same project will be banned.
  3. 3.
    If you think you are temporarily banned by mistake please email [email protected] and we will help you fast.

How to avoid getting banned?

  1. 1.
    Don't use more than 1 Moralis account.
  2. 2.
    Implement rate-limiting logic in your app so you don't try doing more requests than your plan allows.
  3. 3.
    Email us at [email protected] if you have any questions.

Is it allowed to create multiple accounts?

As we offer generous free plans we don't allow multiple account creation.
Only 1 free account is allowed per user - you have to upgrade to pro-plan if you need more limits that the free plan offers you.
If you build your dapp based on resources spread over several free accounts - you will be banned and your service will face unexpected downtime.
Please contact us at [email protected] if you have any questions ๐Ÿ™Œ

Automatic Sync Free Plan Limitation

On the free plan you are allowed to have 200 different syncs including all smart contract events and user syncs.
Also you can maximum sync 20,000 events across all events.
If you need more please email [email protected]is.io and we will give you an appropriate pro-plan.

Request weights

All Moralis plans have generous limits on the amount of requests you can make per month. How many included requests you have depends on the plan you have, check the pricing page for more details.
In most cases one request to the Speedy Nodes or the Web3 API counts as one request towards your monthly quota or allowed rate limit.
However, some Speedy Node methods and API requests are very computationally expensive and therefore count as several requests.
By giving some heavy requests higher weight we ensure that you ONLY pay for what you use and not a cent more - period! This way you get cheap requests for most use-cases while we can protect our systems from abuse by weighing the computationally expensive endpoints.
See the tables below for details about Speedy Node methods and API Endpoints that are weighted.

Speedy Node Requests

Moralis Speedy Nodes have a requests limit of 50 requests per batch.
Method
Cost
All methods not on this list
1 request
eth_uninstallFilter
1 request
eth_accounts
1 request
eth_blockNumber
1 request
eth_chainId
1 request
eth_protocolVersion
1 request
eth_syncing
1 request
net_listening
1 request
net_version
1 request
eth_subscribe
1 request
eth_unsubscribe
1 request
eth_feeHistory
1 request
eth_maxPriorityFeePerGas
1 request
eth_getTransactionReceipt
2 requests
eth_getUncleByBlockHashAndIndex
2 requests
eth_getUncleByBlockNumberAndIndex
2 requests
eth_getTransactionByBlockHashAndIndex
2 requests
eth_getTransactionByBlockNumberAndIndex
2 requests
eth_getUncleCountByBlockHash
2 requests
eth_getUncleCountByBlockNumber
2 requests
web3_clientVersion
2 requests
web3_sha3
2 requests
eth_getBlockByNumber
2 requests
eth_getStorageAt
2 requests
eth_getTransactionByHash
2 requests
trace_get
2 requests
eth_gasPrice
2 requests
eth_getBalance
2 requests
eth_getCode
2 requests
eth_getFilterChanges
2 requests
eth_newBlockFilter
2 requests
eth_newFilter
2 requests
eth_newPendingTransactionFilter
2 requests
eth_getBlockTransactionCountByHash
2 requests
eth_getBlockTransactionCountByNumber
2 requests
eth_getProof
2 requests
eth_getBlockByHash
2 requests
trace_block
3 requests
parity_getBlockReceipts
3 requests
eth_getTransactionCount
3 requests
eth_call
3 requests
trace_transaction
3 requests
eth_getFilterLogs
8 requests
eth_getLogs
8 requests
trace_call
8 requests
trace_callMany
8 requests
trace_rawTransaction
8 requests
trace_filter
8 requests
eth_estimateGas
9 requests
eth_sendRawTransaction
25 requests
debug_traceTransaction
31 requests
trace_replayTransaction
298 requests
trace_replayBlockTransactions
298 requests

API Requests

Path
Weight
/info/endpointWeights
0 request
/{address}
1 request
/{address}/balance
1 request
/erc20/metadata
1 request
/erc20/metadata/symbols
1 request
/erc20/{address}/allowance
1 request
/resolve/{domain}
1 request
/{pair_address}/reserves
1 request
/resolve/{address}/reverse
1 request
/web3/version
1 request
/{address}/events
2 requests
/{address}/erc20/transfers
2 requests
/erc20/{address}/transfers
2 requests
/block/{block_number_or_hash}/nft/transfers
2 requests
/nft/{address}/{token_id}
2 requests
/nft/{address}/{token_id}/transfers
2 requests
/{address}/logs
2 requests
/{address}/function
2 requests
/{address}
2 requests
/erc20/{address}/price
3 requests
/nft/{address}/trades
4 requests
/nft/{address}/lowestprice
4 requests
/{address}/erc20
5 requests
/block/{block_number_or_hash}
5 requests
/nft/search
5 requests
/{address}/nft
5 requests
/{address}/nft/transfers
5 requests
/{address}/nft/{token_address}
5 requests
/nft/{address}
5 requests
/nft/{address}/transfers
5 requests
/nft/{address}/owners
5 requests
/nft/{address}/metadata
5 requests
/nft/{address}/sync
5 requests
/nft/{address}/{token_id}/metadata/resync
5 requests
/nft/transfers
5 requests
/nft/{address}/{token_id}/owners
20 requests
Note: for exact rate limit values the endpoint https://deep-index.moralis.io/api/v2/info/endpointWeights can be used.
Note: /nft/{address}/{token_id}/metadata/resync has a billing cost of 5 and a rate limit cost of 25, meaning that you can call it only once per second with a free plan and twice a second with a Pro plan
example of output:
[
{
"endpoint": "getBlock",
"path": "/block/{block_number_or_hash}",
"price": 1
},
{
"endpoint": "getContractEvents",
"path": "/{address}/events",
"price": 2
},
{
"endpoint": "getTransactions",
"path": "/{address}",
"price": 1
},
...
{
"endpoint": "endpointWeights",
"path": "/info/endpointWeights",
"price": 0
}
]

Why am I rate limited?

There are 2 different types of rate-limits you need to know about.

Rate-limits when using Moralis.Web3API. in the SDK

Error 141 - Rate limit between your server and your clients

The first type of rate limit is protecting your Moralis Server from spam requests from your clients.
As you know - anyone can use the Moralis SDK and call the Web3 API using your server.
Your server has built-in rate limits you can adjust that dictate how many requests different types of users can do before they are rate limited. You have full control over these rate limits and can adjust them with a few lines of code in your Cloud Code.
Read more here.
If your clients go above the allowed rate-limit you set they will see the following error:
Error 141: Too many requests to Web3API from this particular client, the clients needs to wait before sending more requests. This can be adjusted using Moralis.settings.setAPIRateLimit. Read More: https://docs.moralis.io/moralis-dapp/web3-sdk/rate-limit.
When this error can happen:
Imagine a particular user using your website trying to make a large number of requests during the same minute. Your server will protect itself and reject the user. Only the particular user will be affected.
The way to fix this error is to adjust your settings like described above.

Error 141 - Rate limit between your Moralis server and Web3 API

When your users are calling the Web3 API from the SDK they may not be rate-limited by your server (situation described above) but they may get rate-limited because of your plan.
Error 141: This Moralis Server is rate-limited because of the plan restrictions. See the details about the current rate and throttle limits: [RATE LIMIT INFO].
When this error can happen:
You have many users not doing too many requests individually, but collectively they are doing more requests than your plan allows. For example - your plan allows 1000 request per minute. You have 100 users doing 15 requests per minute.
The way to fix this error is to upgrade your Moralis plan.

Rate-limits when calling Web3 API using HTTP

Error 429 - Rate limit between your non-Moralis server and Web3 API

When you are calling Web3 API from your own non-Moralis backend you may get limited by the Web3 API.
In that case you will get Error 429: Rate limit exceeded.
When you call the API you can expect the response header in order to understand your rate limits.
Response header example.
The most important values to look at are x-rate-limit-limit and x-rate-limit-used.
The first one tells you how many requests you are allowed to do per second and the second one how many requests you already did in current second.
Some heavy requests count as several requests.
In order to not get rate-limited pay attention to x-rate-limit-used to be lower than x-rate-limit-limit.
The way to fix this error is to upgrade your Moralis plan.

Example of how to use cursor (nodejs)

const Moralis = require("moralis/node");
const serverUrl = "https://server_domain:2053/server";
const appId = "app id";
const contractAddress = "contract address";
async function getAllOwners() {
await Moralis.start({ serverUrl: serverUrl, appId: appId });
let cursor = null;
let owners = {};
do {
const response = await Moralis.Web3API.token.getNFTOwners({
address: contractAddress,
chain: "eth",
limit: 500,
cursor: cursor,
});
console.log(
`Got page ${response.page} of ${Math.ceil(
response.total / response.page_size
)}, ${response.total} total`
);
for (const owner of response.result) {
owners[owner.owner_of] = {
amount: owner.amount,
owner: owner.owner_of,
tokenId: owner.token_id,
tokenAddress: owner.token_address,
};
}
cursor = response.cursor;
} while (cursor != "" && cursor != null);
โ€‹
console.log("owners:", owners, "total owners:", Object.keys(owners).length);
}
โ€‹
getAllOwners();

Example of how to use cursor (python)

import requests
import time
โ€‹
โ€‹
def get_nft_owners(offset, cursor):
print("offset", offset)
url = 'https://deep-index.moralis.io/api/v2/nft/<address_here>/owners?chain=polygon&format=decimal'
if cursor:
url = url + "&cursor=%s" % cursor
โ€‹
print("api_url", url)
headers = {
"Content-Type": "application/json",
"X-API-Key": "API_KEY_HERE"
}
statusResponse = requests.request("GET", url, headers=headers)
data = statusResponse.json()
print("HTTP headers:", statusResponse.headers)
try:
print("nr results", len(data['result']))
except:
print(repr(data))
print("exiting")
raise SystemExit
โ€‹
cursor = data['cursor']
print(data['page'], data['total'])
return cursor
โ€‹
โ€‹
cursor = None
for j in range(0, 10):
cursor = get_nft_owners(j*500, cursor)
print()
time.sleep(1.1)
Copy link
On this page
Abuse prevention
How to avoid getting banned?
Is it allowed to create multiple accounts?
Automatic Sync Free Plan Limitation
Request weights
Speedy Node Requests
API Requests
Why am I rate limited?
Rate-limits when using Moralis.Web3API. in the SDK
Rate-limits when calling Web3 API using HTTP
Example of how to use cursor (nodejs)
Example of how to use cursor (python)