Get a User's Native Token Balance

Use this method to get User's Native Balance (like BNB, ETH, MATIC)

Usage in your script

const response = await alturaUser.getBalance(CHAIN_ID);

const balance = response.balance;

Parameters

ParameterTypeRequiredDescription

COLLECTION_ADDRESS

string

YES

the address of the collection

TOKEN_ID

number

YES

the item ID

CHAIN_ID

number

YES

the network ID

Last updated