Skip to main content

class ERC1155

class ERC1155
: public Thirdweb.Routable

Interact with any ERC1155 compatible contract.

Summary

MembersTypeDescriptions
signaturevariableHandle signature minting functionality
claimConditionsvariableQuery claim conditions
ERC1155functionInteract with any ERC1155 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
BalancefunctionGet the balance of the given NFT for the connected wallet
BalanceOffunctionGet the balance of the given NFT for the given wallet address
IsApprovedForAllfunctionCheck whether the given contract address has been approved to transfer NFTs on behalf of the given wallet address
TotalCountfunction
TotalSupplyfunctionGet the total suppply in circulation for thge given NFT
SetApprovalForAllfunctionSet approval to the given contract to transfer NFTs on behalf of the connected wallet
TransferfunctionTransfer NFTs to the given address
BurnfunctionBurn NFTs
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)
MintAdditionalSupplyfunctionMint additional supply of a given NFT (requires minting permission)
MintAdditionalSupplyTofunctionMint additional supply of a given NFT and send it to the given wallet (requires minting permission)

Members

public ERC1155Signature signature

Handle signature minting functionality


public ERC1155ClaimConditions claimConditions

Query claim conditions


public inline ERC1155(string parentRoute)

Interact with any ERC1155 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 > Balance(string tokenId)

Get the balance of the given NFT for the connected wallet


public inline async Task< string > BalanceOf(string address,string tokenId)

Get the balance of the given NFT for the given wallet address


public inline async Task< string > 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()


public inline async Task< int > TotalSupply(string tokenId)

Get the total suppply in circulation for thge given NFT


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,int amount)

Transfer NFTs to the given address


public inline async Task< TransactionResult>Burn(string tokenId,int amount)

Burn NFTs


public inline async Task< TransactionResult>Claim(string tokenId,int amount)

Claim NFTs from a Drop contract


public inline async Task< TransactionResult>ClaimTo(string address,string tokenId,int amount)

Claim NFTs from a Drop contract and send them to the given address


public inline async Task< TransactionResult>Mint(NFTMetadataWithSupply nft)

Mint an NFT (requires minting permission)


public inline async Task< TransactionResult>MintTo(string address,NFTMetadataWithSupply nft)

Mint an NFT and send it to the given wallet (requires minting permission)


public inline async Task< TransactionResult>MintAdditionalSupply(string tokenId,int additionalSupply)

Mint additional supply of a given NFT (requires minting permission)


public inline async Task< TransactionResult>MintAdditionalSupplyTo(string address,string tokenId,int additionalSupply)

Mint additional supply of a given NFT and send it to the given wallet (requires minting permission)