Skip to main content

class ERC721

class ERC721
: public Thirdweb.Routable

Interact with any ERC721 compatible contract.

Summary

MembersTypeDescriptions
signaturevariableHandle signature minting functionality
claimConditionsvariableQuery claim conditions
ERC721functionInteract with any ERC721 compatible contract.
GetfunctionGet a NFT in this contract by its ID
GetAllfunctionGet a all NFTs in this contract
GetOwnedfunctionGet a all NFTs owned by the connected wallet
OwnerOffunctionGet the owner of a NFT in this contract
BalancefunctionGet the balance of NFTs in this contract for the connected wallet
BalanceOffunctionGet the balance of NFTs in this contract for the given wallet address
IsApprovedForAllfunctionCheck whether the given contract address has been approved to transfer NFTs on behalf of the given wallet address
TotalCountfunctionGet the total suppply in circulation
TotalClaimedSupplyfunctionGet the total claimed suppply for Drop contracts
TotalUnclaimedSupplyfunctionGet the total unclaimed suppply for Drop contracts
SetApprovalForAllfunctionSet approval to the given contract to transfer NFTs on behalf of the connected wallet
TransferfunctionTransfer a given NFT to the given address
BurnfunctionBurn a given NFT
ClaimfunctionClaim NFTs from a Drop contract
ClaimTofunctionClaim NFTs from a Drop contract and send them to the given address
MintfunctionMint an NFT (requires minting permission)
MintTofunctionMint 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

  • address Optional 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

  • address The wallet address

  • contractAddress The 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)