Here is some example how to get address balances
import { Provider, Address } from “fuels”;
const provider = new Provider("node-url");
const address = Address.fromString("fuel1l...");
const balances = await provider.getBalances(address);
Here is some example how to get address balances
import { Provider, Address } from “fuels”;
const provider = new Provider("node-url");
const address = Address.fromString("fuel1l...");
const balances = await provider.getBalances(address);
When doing getBalances
it returns all the tokens
and balances, the content will be an array with the assetId and the amount of each asset.