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

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;
const response: { balance: boolean} = await alturaUser.getItems(COLLECTION_ADDRESS,CHAIN_ID,TOKEN_ID);

const balance= 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