class ERC1155
class ERC1155
: public Thirdweb.Routable
Interact with any ERC1155 compatible contract.
Summary
Members | Type | Descriptions |
---|---|---|
signature | variable | Handle signature minting functionality |
claimConditions | variable | Query claim conditions |
ERC1155 | function | Interact with any ERC1155 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 |
Balance | function | Get the balance of the given NFT for the connected wallet |
BalanceOf | function | Get the balance of the given NFT 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 | |
TotalSupply | function | Get the total suppply in circulation for thge given NFT |
SetApprovalForAll | function | Set approval to the given contract to transfer NFTs on behalf of the connected wallet |
Transfer | function | Transfer NFTs to the given address |
Burn | function | Burn NFTs |
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) |
MintAdditionalSupply | function | Mint additional supply of a given NFT (requires minting permission) |
MintAdditionalSupplyTo | function | Mint 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 addresscontractAddress
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)