NFT
Balance
/cosmos/nft/v1beta1/balance/{owner}/{class_id}Balance queries the number of NFTs of a given class owned by the owner, same as balanceOf in ERC721
Query Parameters
stringkey is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
string <uint64>offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
string <uint64>limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
booleancount_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
Responses
NFTs
/cosmos/nft/v1beta1/nftsNFTs queries all NFTs of a given class or owner,choose at least one of the two, similar to tokenByIndex in ERC721Enumerable
Query Parameters
stringkey is a value returned in PageResponse.next_key to begin querying the next page most efficiently. Only one of offset or key should be set.
string <uint64>offset is a numeric offset that can be used when key is unavailable. It is less efficient than using key. Only one of offset or key should be set.
string <uint64>limit is the total number of results to be returned in the result page. If left empty it will default to a value to be set by each app.
booleancount_total is set to true to indicate that the result set should include a count of the total number of items available for pagination in UIs. count_total is only respected when offset is used. It is ignored when key is set.
Responses
Owner
/cosmos/nft/v1beta1/owner/{class_id}/{id}Owner queries the owner of the NFT based on its class and id, same as ownerOf in ERC721
Supply
/cosmos/nft/v1beta1/supply/{class_id}Supply queries the number of NFTs from the given class, same as totalSupply of ERC721.