Airdropping tokens
Last updated
Last updated
Note: This airdrop method does not support Generative collections, or Series collections with a random reveal option selected.
With Highlight, you can airdrop tokens to specific wallet addresses by writing directly to the applicable block explorer.
For this example, we'll use a collection deployed on Ethereum. Below is a step-by-step guide on how to airdrop tokens:
First, open your collection contract in the appropriate blockchain explorer by finding the "View contract on explorer" link in the bottom right.
On the blockchain explorer page, select the "Contract" tab. To airdrop tokens, we'll be using the "Write as proxy" tab.
Connect to web3 with the address that deployed the contract.
Access the contract's functions: below the "Write as proxy" section, you'll see a list of the contract's functions. Then, find the section titled "registerMinter" and input your wallet address. Sign the transaction and wait for the transaction to complete. Doing so will allow you to make changes to the contract.
Select contract function: Once you are the registered minter, you can airdrop tokens to holders. You have a few options here: To airdrop multiple tokens to a single address, use "mintAmountToRecipient". To airdrop multiple to multiple addresses, use "mintAmountToRecipients". To airdrop one to a single address, use "mintOneToRecipient". To airdrop one token to multiple addresses, use "mintOneToRecipients".
Input airdrop parameters: set the edition ID to "0" for an open edition on an ERC-721 or Series collection. For collections deployed on ERC-1155s, the editionID would be 1 for the first contract, 2 for the second contract, and so on. You can also verify the editionID by looking at the mint page URL. For instance, on this URL: https://highlight.xyz/mint/base:0x79430b161d5061C6205b8A2da6db1B4DA702c654:1, the editionID would be "1", the last number after the contract address. For limited editions and one of ones on an ERC-721, the editionID would start at 0 for the first contract, 1 for the second contract, and so on. Under recipients, input the wallet addresses in a comma-separated format between square brackets. No spaces are needed between wallet addresses.
Submit the transaction: Once satisfied with the inputs, click on the "Write" button and confirm the transaction in your wallet. Make sure you double-check all information before submitting the transaction! The tokens will be airdropped to the recipient's wallet address once the transaction is confirmed and completed.
When you're done, go to the section titled "unregisterMinter" and input your wallet address. Sign transaction
Congratulations, you've successfully airdropped tokens! If you run into any issues, reach out to us at gm@highlight.xyz.