L2 Airdrop
This repository is a collection of command line tools to do massive Airdrops of Decentraland Wearables on Matic
Index
- Requirements
- Installation
- Setup
⚠️ Warnings- Airdrops: send wearables to a list of addresses
- Transactions: inspect, cancel or speed up transactions
- Opensea: download all the address from an opensea collection
- POAP: download all the address from a list of events ids
- Rarible: download all the address from a rarible item
Requirements
Before to start make sure you have NodeJS >=12
node -v
Installation
# Download code
git clone git@github.com:decentraland/l2-airdrop.git
# Install dependencies
cd l2-airdrop && npm install
Setup
Before you start to do airdrops you need to setup your environment,
.env
file
Create a new cp .env.example .env
Create a private key that would be use to mint your wearables
openssl rand -hex 32
# => 111...999
.env
file
Save your new private key in your # .env
CHAIN_ID=137
ACCOUNT_PRIVATE_KEY=111...999
You can use multiples private keys separated by
,
(ACCOUNT_PRIVATE_KEY=111...999,222...888)
Now you can see your new address using the following command
npm run environment
CHAIN_ID: 137
ACCOUNT_WALLETS: [
'0xffffffffffffffffffffffffffffffffffffffff'
]
MATIC
to your new address
Send You need to have MATIC in your new address to pay for fees on Polygon (which are really cheap with 1 MATIC
you can mint thousands of wearables)
Add your new address as minter on your builder collection
Go to https://builder.decentraland.org/collections
, open the collection you want yo airdrop and add your new address as a minter
Warnings
⚠️ Cancelling the command line execution doesn't cancel those transactions sent with it
If for any reason you cancel the execution of the command line please take into account the any transaction sent is still running, if you restart the airdrop it will fail until all pending transactions complete.
Airdrops
Send wearables to a list of addresses
Transactions
Inspect, cancel or speed up transactions
Opensea
Download all the address from an opensea collection
POAP
Download all the address from a list of events ids
Rarible
Download all the address from a rarible item