Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/vikiival/airdrop

Airdrop Statemine NFTs easy
https://github.com/vikiival/airdrop

Last synced: about 22 hours ago
JSON representation

Airdrop Statemine NFTs easy

Awesome Lists containing this project

README

        

## Airdrop script for Polkadot NFTs pallet

## Usage

1. create `.env` file with the following content:

```
COLLECTION_ID=
BASE_URL=
KEYRING_SEED=
METADATA=ipfs://ipfs/
```

2. create `drop.txt` file with the following content:

```txt
-
-
```

3. run `deno task dev` to run the script

## BASE_URL

List of public nodes:
- STATEMINE - https://kusama-asset-hub-rpc.polkadot.io/
- STATEMINT - https://polkadot-asset-hub-rpc.polkadot.io/
- WESTMINT - https://westend-asset-hub-rpc.polkadot.io/
- KUSAMA - https://kusama-rpc.polkadot.io

## Hints

If you have a list of addresses in your clipboard, you can use the following command to create `drop.txt` file:

```bash
pbpaste | sort | uniq | xargs -I{} echo '- {}' > drop.txt
```

If you need to split drop into multiple files, you can use the following command:

```bash
split -l 500 -d drop.txt drop_
````

## Errors

**1. `RPC-CORE: submitExtrinsic(extrinsic: Extrinsic): Hash:: [413]: Payload Too Large`**

You are sending too many transactions at once. Try to reduce the number of transactions in `drop.txt` file.

**2. `RPC-CORE: submitExtrinsic(extrinsic: Extrinsic): Hash:: 1010: Invalid Transaction: Transaction would exhaust the block limits`**

You are sending too many transactions at once. Try to reduce the number of transactions in `drop.txt` file.