Created
August 11, 2022 10:49
-
-
Save SuperstrongBE/64bd25e77a1bb091b02f8f78233efd62 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { JsonRpc }= require("@eoscafe/light-api"); | |
const rpc = new JsonRpc("proton"); | |
/** | |
* Fetch token holder counts | |
* @returns {any} | |
*/ | |
async getTokenHolders (){ | |
return rpc.get_tokenholder_count('accountName','TOKEN'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment