In order to vastly improve the response times on a number of endpoints (by up to x10!), we are planning to phase out support for total
within our API responses.
A new flag called disable_total
exists on the below endpoints which defaults to false
. When users set this to true
, the total
count from the response will return as null
, and the endpoint’s response time is greatly improved. We strongly recommend to begin using this flag.
Planned Change
From February 1st 2023 the default value of disable_total
will be set to true
, and unless you specify disable_total=false
, the total
value will be returned as null
.
Endpoints
- Get NFTs by wallet
- Get NFT Transfers by wallet
- Get NFT collections by wallet
- Get NFTs by contract
- Get NFTs owners by contract
- Get NFT transfers by contract
- Get NFT transfers from a block to block
- Get NFT transfers by block
- Get NFT trades by marketplace
- Get NFT transfers by token ID
- Get NFT owners token ID
- Search NFTs
- Get ERC20 token transfers by wallet
- Get ERC20 token transfers by contract
- Get native transactions by wallet
- Get verbose transactions by wallet
- Get logs by contract
Examples on how to set disable_total
to true or false:
This request sets disable_total
to true
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2/nft/CONTRACT_ADDRESS/transfers?chain=bsc&format=decimal&disable_total=true' \
--header 'accept: application/json' \
--header 'X-API-Key: API_KEY_HERE'
The requests sets disable_total
to false
curl --request GET \
--url 'https://deep-index.moralis.io/api/v2/nft/CONTRACT_ADDRESS/transfers?chain=bsc&format=decimal&disable_total=false' \
--header 'accept: application/json' \
--header 'X-API-Key: API_KEY_HERE'