ClaimButton
This button is used to claim tokens (NFT or ERC20) from a given thirdweb Drop contract.
there are 3 type of Drop contract: NFT Drop (DropERC721), Edition Drop (DropERC1155) and Token Drop (DropERC20)
Learn more: https://thirdweb.com/explore/drops
Note: This button only works with thirdweb Drop contracts.
For custom contract, please use TransactionButton
Example
Example for claiming NFT from an NFT Drop contract
For Edition Drop (ERC1155)
For Token Drop (ERC20)
Attach custom Pay metadata
Since this button uses the TransactionButton
, it can take in any props that can be passed
to the TransactionButton
For error handling & callbacks on transaction-sent and transaction-confirmed, please refer to the TransactionButton docs.
Parameters
Returns
A wrapper for TransactionButton