GithubHelp home page GithubHelp logo

bitfwdcommunity / airdropper Goto Github PK

View Code? Open in Web Editor NEW
17.0 4.0 51.0 17 KB

A nodejs script that allows for the effortless airdropping of tokens. Use responsibly.

License: MIT License

JavaScript 100.00%

airdropper's Introduction

Airdropper

This is a simple node.js script that will allow you to airdrop tokens from an account to a fixed list of accounts.

Tutorial

A tutorial on how to use this is provided on medium here. Check it out!

Requirements

  1. List of accounts that you want to airdrop to in the form of a file named "balances.json" (can be obtained by using parity export state functionality)
  2. An account with the tokens on it that you will be airdropping from. Account access is currently done by using a seed or privateKey.
  3. The contract address of the token contract that holds the tokens you are trying to send.
  4. The ABI of the of the token contract that holds the tokens you are trying to send.

Getting Started

  1. Install npm dependencies
  2. Create a config.js file with the following text:
modules.export = {
  seed: 'your-seed-goes-here',
  contractAddress: 'token-contract-address-goes-here',
  apiKey: 'your-infura-api-key-goes-here',
  abi: 'token-contract-abi-goes-here'
}

If you are using a private key, use the privateKey field instead of seed but not both. 3. Go into the index.js file and modify the following fields to your liking.

AIRDROP_QTY: amount of tokens per airdrop
DURATION: time between api calls (infura has no rate limit afaik)
GAS_LIMIT: amount of gas per tx (default at 300000)
GAS_PRICE: gas price in gwei you are willing to pay per tx (default at 5gwei)
INITIAL_TOKENS: total amount of tokens being airdropped
  1. Run index.js using node. In the event that the script crashes, take the last known index that the script sent out at and replace the startingIndex with that number.

The script will print out every time a transaction is mined.

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.