ankr_getNFTHolders
List wallet holders of an NFT collection
POST/?ankr_getNFTHolders
Returns the list of wallet addresses that currently hold any token from the specified NFT collection. Useful for snapshotting an allowlist, computing distribution stats, or driving holder-gated drops.
Pass the contractAddress of the collection plus the blockchain it lives on. Page through large collections with pageSize (default 1000, max 10000) and the nextPageToken echoed in each response.
Part of the NFT API product (700 compute units per call, $0.00007 at base rate).
Request
Responses
- 200
- 400
- 401
- 429
- 500
Success. JSON-RPC result envelope contains the holders array and a pagination cursor. JSON-RPC errors are returned with HTTP 200 — check for an error key in the response body.
Bad Request — malformed JSON-RPC envelope or invalid params. The gateway rejects before the JSON-RPC layer processes the call.
Unauthorized — missing or invalid API key in the server URL path. Verify that {API_KEY} is set to a valid project key.
Too Many Requests — the API key has exceeded its rate or quota limits. Back off and retry; consider upgrading the Premium tier for higher limits.
Server error — unexpected condition. Retry with exponential backoff; if it persists, file a ticket at https://www.ankr.com/support/.