githubEdit

ERC721

A standard interface for non-fungible tokens

This section contains the different types of ERC721 methods that can be used in the Unity SDK. For additional operations and methods please refer to the ChainSafe Documentation.arrow-up-right

Balance Of

Counts all ERC721 tokens assigned to an owner

string chain = "cronos";
string network = "mainnet"; // mainnet or testnet
string contract = "CONTRACT_ADDRESS";
string account = "WALLET_ADDRESS";

int balance = await ERC721.BalanceOf(chain, network, contract, account);
print(balance);

Owner Of

Find the owner of an ERC721 token

string chain = "cronos";
string network = "mainnet"; // mainnet or testnet
string contract = "CONTRACT_ADDRESS";
string tokenId = "TOKEN_ID";

string ownerOf = await ERC721.OwnerOf(chain, network, contract, tokenId);
print(ownerOf);

Owner Of Batch

Balance of batch will get the balance of a list of token ids

URI

Returns meta data about the token.

All 721s

Get all 721 tokens from an account

Last updated

Was this helpful?