How to get address token balances?

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);
3 Likes

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.

3 Likes