Skip to main content

ERC721Supply

Functionality available for contracts that implement the IERC721 and `IERC721Supply interfaces.

GetAll

Get the metadata and current owner of all NFTs in the contract.

By default, returns the first 100 NFTs (in order of token ID). Use queryParams to paginate the results.

var data = await contract.ERC721.GetAll();
Configuration

queryParams (optional)

Provide an optional object to configure the query. Useful for paginating the results.

var data = await contract.ERC721.GetAll(new QueryAllParams()
{
count = 100,
start = 0
});

Return Value

Returns a List of NFT structs, each containing the following properties:

{
{
string id;
string uri;
string description;
string image;
string name;
string external_url;
object attributes;
}
string owner;
string type;
int supply;
int quantityOwned; // only for ERC1155
}

TotalCount

Get the total number of NFTs minted in this contract.

var data = await contract.ERC721.TotalCount();
Configuration

Return Value

Returns an int.

int