For the complete documentation index, see llms.txt. This page is also available as Markdown.

Get a User's ERC20 Balance

Get ERC20 balance of user

Usage in your script

const response = await getERC20Balance.getBalance(TOKEN_ADDRESS,CHAIN_ID);

const balance = response.balance;
const response: { balance: boolean} = await alturaUser.getItems(TOKEN_ADDRESS,CHAIN_ID);

const balance = response.balance;

Parameters

Parameter
Type
Required
Description

CHAIN_ID

number

YES

the network ID

TOKEN_ADDRESS

STRING

YES

Token Contract address

Last updated