Coder Social home page Coder Social logo

phantasma-io-archive / phantasma-airdrop Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 1.0 38 KB

Airdrop Script to airdrop the tokens.

License: MIT License

TypeScript 100.00%
airdrop blockchain blockchain-tool crypto nft nfts phantasma phantasmachain phantasmaio

phantasma-airdrop's Introduction

Phantasma Airdrop

This is a Node.js project that interfaces with the Phantasma blockchain. It's designed to facilitate an airdrop, a process of distributing tokens to addresses, based on a list provided in a CSV file.

Prerequisites

  • Node.js (v14.0.0 or later)
  • NPM (v6.0.0 or later, comes with Node.js)

Setup

  1. Clone this repository to your local machine.
git clone https://github.com/phantasma-io/Phantasma-Airdrop.git
  1. Navigate into the project directory.
cd Phantasma-Airdrop
  1. Install the project dependencies.
npm install

Configuration

  1. Rename .env.example to .env.
mv .env.example .env
  1. Open the .env file in your text editor and replace the placeholder values with your actual configuration.
API_URL=https://testnet.phantasma.io/rpc
NEXUS_NAME=testnet
CHAIN_NAME=main
PAYLOAD=Airdrop - Deposit
WIF=Your_WIF
FILE_PATH=airdrop/airdrop_tokens.csv
GAS_PRICE=100000
GAS_LIMIT=210000

Remember to replace Your_WIF with your actual WIF.

Running the Project

You can run the project in development mode with:

npm run dev

This command will compile the TypeScript code to JavaScript and then run the index.ts file with ts-node.

phantasma-airdrop's People

Contributors

teknopt avatar

Watchers

 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.