Skip to main content

ERC721Enumerable

Functionality available for contracts that implement the ERC721 and ERC721Enumerable extensions.

get_owned

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

# Address of the wallet to get the NFTs of
address = "{{wallet_address}}" # Optional - Defaults to the connected wallet
nfts = contract.erc721.get_owned(address)
Configuration

address (optional)

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

 nfts =  contract.erc721.get_owned(
"{{wallet_address}}",
)

Return Value

Returns a list of NFTMetadataOwner objects.

class NFTMetadataOwner:
metadata: NFTMetadata
owner: str