Token
Returns the number of token accounts that have been created for this mint.
Parameters
pubkeystring required Pubkey of the mint to query, as base-58 encoded string.
configobject optional Configuration object.
excludeZerobooleanIf set to true, will exclude zero-balance token accounts from the count. Setting it to false will include zero-balance accounts. Default is false.
Result
u64The number of token accounts that have been created for this mint.
Example
Request
JSONcurl "https://eu.fluxrpc.com?key=<your-API-key>" -s -X POST -H "Content-Type: application/json" -d '
{
"jsonrpc": "2.0",
"id": 1,
"method": "getTokenAccountsCount",
"params": [
"FLUXBmPhT3Fd1EDVFdg46YREqHBeNypn1h4EbnTzWERX",
{
"excludeZero": true
}
]
}'Response
JSON{
"jsonrpc": "2.0",
"id": 1,
"result": 16579
}