This API method helps you to get the number of NFT(721/1155) collection holders of an NFT(721/1155) token.
Supported on BSC and ETH mainnet only.
Parameters
Token Address
- The address of the tokenToken Type
: Please specify the type of token you query for, e.g. "ERC721", "ERC1155", etc.
Returns
Count
- the number of NFT(721/1155) collection holders of the given token
API Endpoint
The format of a MegaNode API endpoint is https://{chain}-{network}.nodereal.io/v1/{API-key}
Here is an example:
https://bsc-mainnet.nodereal.io/v1/4c0a1c23661a4e26bcbcwed461e34ea9
For other chains or networks, you could refer to this guidance Find API key & endpoint.
Example
Request
curl https://bsc-mainnet.nodereal.io/v1/your-api-key \
-X POST \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","method":"nr_getNFTCollectionHolderCount","params":["0x07D971C03553011a48E951a53F48632D37652Ba1","ERC721"],"id": 1 }'
Result
{
"id": "1",
"jsonrpc": "2.0",
"result": "0x4E5"
}