IAirdropERC1155
Thirdweb's Airdrop
contracts provide a lightweight and easy to use mechanism to drop tokens. AirdropERC1155
contract is an airdrop contract for ERC1155 tokens. It follows a push mechanism for transfer of tokens to intended recipients.
Methods
addAirdropRecipients
Parameters
_contents
IAirdropERC1155.AirdropContent[]
undefined
airdrop
Lets contract-owner set up an airdrop of ERC1155 tokens to a list of addresses.
The token-owner should approve target tokens to Airdrop contract, which acts as operator for the tokens.
Parameters
paymentsToProcess
uint256
The number of airdrop payments to process.
getAllAirdropPayments
Returns all airdrop payments set up -- pending, processed or failed.
Returns
contents
IAirdropERC1155.AirdropContent[]
undefined
getAllAirdropPaymentsFailed
Returns all pending airdrop failed.
Returns
contents
IAirdropERC1155.AirdropContent[]
undefined
getAllAirdropPaymentsPending
Returns all pending airdrop payments.
Returns
contents
IAirdropERC1155.AirdropContent[]
undefined
getAllAirdropPaymentsProcessed
Returns all pending airdrop processed.
Returns
contents
IAirdropERC1155.AirdropContent[]
undefined
Events
AirdropPayment
Emitted when an airdrop payment is made to a recipient.
Parameters
recipient indexed
address
undefined
content
IAirdropERC1155.AirdropContent
undefined
RecipientsAdded
Emitted when airdrop recipients are uploaded to the contract.
Parameters
_contents
IAirdropERC1155.AirdropContent[]
undefined
Last updated