Closed xavier506 closed 2 years ago
const fetch = require('node-fetch');
const { JsonRpc } = require('eosjs');
// Instantiate a new JsonRpc object, with the Network Api Uri, and a request object
const rpc = new JsonRpc('https://eos.edenia.cloud', { fetch });
// Request the balance, passing in the token contract, the account name, and the token symbol
rpc.get_currency_balance('eosio.token', 'genesis.eden', 'EOS').then((balance) => console.log(balance));
Show eden treasury balance in EOS and USD