Skip to content

Instantly share code, notes, and snippets.

@SuperstrongBE
Created August 11, 2022 10:49
Show Gist options
  • Save SuperstrongBE/64bd25e77a1bb091b02f8f78233efd62 to your computer and use it in GitHub Desktop.
Save SuperstrongBE/64bd25e77a1bb091b02f8f78233efd62 to your computer and use it in GitHub Desktop.
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