Balance

Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721

GEThttps://coreum.nownodes.io/cosmos/nft/v1beta1/balance/{owner}/{class_id}
Path parameters
owner*string

owner is the owner address of the nft

class_id*string

class_id associated with the nft

Response

A successful response.

Body
amountamount is the number of all NFTs of a given class owned by the owner
Request
const response = await fetch('https://coreum.nownodes.io/cosmos/nft/v1beta1/balance/{owner}/{class_id}', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
{
  "amount": "text"
}