getTokenHolders
Retrieve all ERC20 or ERC721 token holders, with optional historic block-height filtering, to visualize holder distribution and create charts.
Instructions
Commonly used to get a list of all the token holders for a specified ERC20 or ERC721 token. Returns historic token holders when block-height is set (defaults to latest). Useful for building pie charts of token holders.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"chainName": "<chainName>",
"tokenAddress": "<tokenAddress>",
"authToken": "<authToken>"
},
"name": "getTokenHolders"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| authToken | Yes | Authorization token for accessing the Somnia API | |
| chainName | Yes | ||
| tokenAddress | Yes | Token address to fetch holders for |