get https://api.web3shards.io/v1/balances/latest
Returns a paginated response of latest ERC20 token balances for a given wallet.
"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 getLatestBalancesOnWallet = async function() {
const wallet = "0xe4248daab3f9e14584cfa9688c69443d2953aea5";
const type = "erc20";
const page = 1;
const resp = await shards.balances.getLatestBalancesOnWallet(wallet, type, page);
console.log(resp)
}
getLatestBalancesOnWallet();