Skip to main content

ERC721Enumerable

Functionality available for contracts that implement the IERC721 and IERC721Enumerable interfaces.

GetOwned

Get the metadata of all NFTs a wallet owns from this contract.

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

address (optional)

The address of the wallet to get the NFTs of. If not provided, defaults to the connected wallet address.

Must be a string.

var data = await contract.ERC721.GetOwned("{{wallet_address}}");

Return Value

Returns a List of NFT structs, 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
}