Giter VIP home page Giter VIP logo

l2-airdrop's Introduction

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 [email protected]: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

l2-airdrop's People

Contributors

2fd avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.