/l2-airdrop

Primary LanguageTypeScript

L2 Airdrop

This repository is a collection of command line tools to do massive Airdrops of Decentraland Wearables on Matic

 

Index

 

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,

Create a new .env file

  cp .env.example .env

Create a private key that would be use to mint your wearables

  openssl rand -hex 32
  # => 111...999

Save your new private key in your .env file

  # .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'
]

 

Send MATIC to your new address

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)

send-matic

 

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

add-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

See documentation

 

Transactions

Inspect, cancel or speed up transactions

See documentation

 

Opensea

Download all the address from an opensea collection

See documentation

POAP

Download all the address from a list of events ids

See documentation

Rarible

Download all the address from a rarible item

See documentation