This script is heavily inspired by the kanaria-hatchery script by kianenigma, so please have a look at that script as well and give it a ⭐
An example of the extrinsic after running the script will look like this
🌱 Please support me if you'd like 😊
HtSKUKWRPCxCtzsnNfdbN1NN5uVq4yMizb2FqeHSC3YoRTi
First have polkadot js api installed.
Clone the repo and install npm packages.
git clone https://github.com/martinloesethjensen/rmrk-emote-batch
cd rmrk-emote-batch
npm install
Specify RPC endpoint, egg id, and seed phrase in the command.
I would first test on Westend before trying it out on Kusama. But try in small batches of emotes as you might not have enough westies.
# Sending all emotes (roughly ~0.05 KSM)
node index.js --id <RMRK_ID_FILE> -e wss://kusama-rpc.polkadot.io -s <SEED_FILE>
# Sending specific emotee
# Specified emotes need to be space separated.
node index.js --id <RMRK_ID_FILE> -e wss://kusama-rpc.polkadot.io -s <SEED_FILE> --emotes 🚀 🎉
# Removing specific emotes from complete list of emotes
# Specified emotes need to be space separated.
node index.js --id <RMRK_ID_FILE> -e wss://kusama-rpc.polkadot.io -s <SEED_FILE> -r 🤩 🥳
ℹ️ Please note that the emojis
list in index.js contains many emoji unicodes. So if you want to emote with fewer emojis then just remove some from the list before running it. It is also possible to specify a specific list of emojis by using the command: --emotes
and providing a space-separated list of emojis.
You can find emoji unicodes here and here.
# Fund other accounts by sending an amount from a funder to receiving addresses
node index.js -e wss://kusama-rpc.polkadot.io --receiving-addresses <FILE_WITH_ADDRESSES> --funding-account <FILE_WITH_SEED> --amount <AMOUNT>
Options:
--help Show help [boolean]
--version Show version number [boolean]
--id A file with RMRK IDs. [string]
-e, --endpoint The wss endpoint. (defaults to westend)
[Westend = wss://westend-rpc.polkadot.io]
[Kusama = wss://kusama-rpc.polkadot.io]
[string] [required]
-s, --secret-keys A file with secret keys or seed phrases. It
is not saved anywhere. [string]
-f, --funding-account A file with secret key or seed phrase. It is
not saved anywhere. [string]
--receiving-addresses, --ra Used with funding-account where we specify
amount to transfer to receiving accounts in
the accounts file. [string]
--amount Used with funding-account where we specify
amount to transfer to receiving accounts in
the accounts file.
--emotes array of emojis, space separated [array]
-r, --remove array of emojis to remove from the list,
space separated [array]
-c, --chunk Boolean for if script should run chunked
batch calls [boolean] [default: true]