ERC1155Enumerable
Functionality available for contracts that implement the ERC1155Enumerable
extension.
Metadata for each NFT is fetched from the NFT’s uri
property.
If the metadata is hosted on IPFS, the metadata is fetched and made available as an object.
The object’s image
property will be a URL that is available through the thirdweb IPFS gateway.
get_all
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.
metadatas = contract.erc1155.get_all()
print(metadatas)
Configuration
get_owned
Get all the data associated with the NFTs owned by a specific wallet.
# Address of the wallet to get the NFTs of
address = "{{wallet_address}}"
nfts = contract.erc1155.get_owned(address)