Skip to main content

Documentation Index

Fetch the complete documentation index at: https://etherspot.fyi/llms.txt

Use this file to discover all available pages before exploring further.

import { DataUtils } from '../src';
import * as dotenv from 'dotenv';

dotenv.config();

async function main() {
  // initializating Data service...
  const dataService = new DataUtils();

  const balances = await dataService.getAccountBalances({
    account: '', // address
    chainId: 1,
  });
  console.log('\x1b[33m%s\x1b[0m', `EtherspotWallet balances:`, balances);
}

main()
  .catch(console.error)
  .finally(() => process.exit());