class ERC721
class ERC721
: public Thirdweb.Routable
Interact with any ERC721 compatible contract.
Summary
| Members | Type | Descriptions |
|---|---|---|
| signature | variable | Handle signature minting functionality |
| claimConditions | variable | Query claim conditions |
| ERC721 | function | Interact with any ERC721 compatible contract. |
| Get | function | Get a NFT in this contract by its ID |
| GetAll | function | Get a all NFTs in this contract |
| GetOwned | function | Get a all NFTs owned by the connected wallet |
| OwnerOf | function | Get the owner of a NFT in this contract |
| Balance | function | Get the balance of NFTs in this contract for the connected wallet |
| BalanceOf | function | Get the balance of NFTs in this contract for the given wallet address |
| IsApprovedForAll | function | Check whether the given contract address has been approved to transfer NFTs on behalf of the given wallet address |
| TotalCount | function | Get the total suppply in circulation |
| TotalClaimedSupply | function | Get the total claimed suppply for Drop contracts |
| TotalUnclaimedSupply | function | Get the total unclaimed suppply for Drop contracts |
| SetApprovalForAll | function | Set approval to the given contract to transfer NFTs on behalf of the connected wallet |
| Transfer | function | Transfer a given NFT to the given address |
| Burn | function | Burn a given NFT |
| Claim | function | Claim NFTs from a Drop contract |
| ClaimTo | function | Claim NFTs from a Drop contract and send them to the given address |
| Mint | function | Mint an NFT (requires minting permission) |
| MintTo | function | Mint an NFT and send it to the given wallet (requires minting permission) |
Members
public ERC721Signature signature
Handle signature minting functionality
public ERC721ClaimConditions claimConditions
Query claim conditions
public inline ERC721(string parentRoute)
Interact with any ERC721 compatible contract.
public inline async Task< NFT>Get(string tokenId)
Get a NFT in this contract by its ID
public inline async Task< List< NFT> >GetAll(QueryAllParams queryParams)
Get a all NFTs in this contract
public inline async Task< List< NFT> >GetOwned(string address)
Get a all NFTs owned by the connected wallet
Parameters
addressOptional wallet address to query NFTs of
public inline async Task< string > OwnerOf(string tokenId)
Get the owner of a NFT in this contract
public inline async Task< string > Balance()
Get the balance of NFTs in this contract for the connected wallet
public inline async Task< string > BalanceOf(string address)
Get the balance of NFTs in this contract for the given wallet address
public inline async Task< bool > IsApprovedForAll(string address,string approvedContract)
Check whether the given contract address has been approved to transfer NFTs on behalf of the given wallet address
Parameters
addressThe wallet addresscontractAddressThe contract address to check approval for
public inline async Task< int > TotalCount()
Get the total suppply in circulation
public inline async Task< int > TotalClaimedSupply()
Get the total claimed suppply for Drop contracts
public inline async Task< int > TotalUnclaimedSupply()
Get the total unclaimed suppply for Drop contracts
public inline async Task< TransactionResult>SetApprovalForAll(string contractToApprove,bool approved)
Set approval to the given contract to transfer NFTs on behalf of the connected wallet
public inline async Task< TransactionResult>Transfer(string to,string tokenId)
Transfer a given NFT to the given address
public inline async Task< TransactionResult>Burn(string tokenId)
Burn a given NFT
public inline async Task< TransactionResult Claim(int quantity)
Claim NFTs from a Drop contract
public inline async Task< TransactionResult ClaimTo(string address,int quantity)
Claim NFTs from a Drop contract and send them to the given address
public inline async Task< TransactionResult>Mint(NFTMetadata nft)
Mint an NFT (requires minting permission)
public inline async Task< TransactionResult>MintTo(string address,NFTMetadata nft)
Mint an NFT and send it to the given wallet (requires minting permission)