Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/vikiival/airdrop
- Owner: vikiival
- Created: 2023-06-16T13:44:07.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-09-27T20:36:22.000Z (about 1 year ago)
- Last Synced: 2024-10-12T01:37:02.655Z (28 days ago)
- Language: TypeScript
- Size: 64.5 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
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.