ERC1155
Functionality available for contracts that implement the IERC1155
interface.
Get the quantity of a specific NFT owned by the connected wallet.
The token ID of the NFT to check the balance of.
Must be a string
.
A string
representing the quantity of the NFT owned by the wallet.
Get the quantity of a specific NFT owned by a wallet.
The wallet address to check the NFT balance for.
Must be a string
.
The token ID of the NFT to check the balance of.
Must be a string
.
A string
representing the quantity of the NFT owned by the wallet.
Get the metadata of an NFT using it’s token ID.
Metadata is fetched from the uri
property of the NFT.
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.
The token ID of the NFT to get the metadata for.
Must be a string
.
Returns an NFT
struct containing the following properties:
Transfer an NFT from the connected wallet to another wallet.
The wallet address to send the NFT to.
Must be a string
.
The token ID of the NFT to transfer.
Must be a string
.
The quantity of the NFT to transfer.
Must be an int
.
Get whether this wallet has approved transfers from the given operator.
This means that the operator can transfer NFTs on behalf of this wallet.
The wallet address that owns the NFT.
Must be a string
.
The wallet address of the operator to check (i.e. the wallet that does/does not have approval).
Must be a string
.
Give another address approval (or remove approval) to transfer all of your NFTs from this collection.
The wallet address to approve.
Must be a string
.
Whether to grant approval (true) or remove approval (false).
Must be a bool
.
Get the total number of unique NFTs in the collection.
Returns an int
representing the total number of unique NFTs in the collection.
Returns the total supply of a token in the collection, including burned tokens.
The token ID of the NFT to get the total supply of.
Must be a string
.
Returns an int
representing the total supply of the token.