Get a User's Item Balance

Use this method to get user item balance

Usage in your script

const response = await alturaUser.getUserItemBalance(COLLECTION_ADDRESS,CHAIN_ID,TOKEN_ID);

const isOwner= response.balance;

Parameters

Parameter
Type
Required
Description

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