get https://api.web3shards.io/v1/holders/count
Returns a holder count for an ERC20 token
"use strict";
const Shards = require("web3-shards");
const shards = Shards.API.Ethereum.V1;
shards.configure({
apiKey: "YOUR_API_KEY", // Get your api key @ https://web3shards.io/console
maxRequestsPerSecond:5, // client-side limiter to prevent accidental burning
logger: 1 // 0=none,1=errors,2=verbose
});
const getHolderList = async function() {
const token = "0x95ad61b0a150d79219dcf64e1e6cc01f0b64c4ce";
const type = "erc20";
const resp = await shards.holders.getHolderCount(token, type);
console.log(resp)
}
getHolderList();