Skip to content

Instantly share code, notes, and snippets.

@vikiival
Last active February 3, 2021 11:38
Show Gist options
  • Save vikiival/636f9d11d49855502073aa152059a059 to your computer and use it in GitHub Desktop.
Save vikiival/636f9d11d49855502073aa152059a059 to your computer and use it in GitHub Desktop.
Fetching RMRK
#!/bin/bash
i=5438000
while [ $i -le 6010749 ]
do
yarn fetch --ws 'wss://kusama-rpc.polkadot.io' --from $i --to $((i+999))
let "i+=1000"
done
#!/bin/bash
cat rmrk-3.csv | grep '^[0-9]' | cut -d ',' -f 2 | sort | awk '$0>=4892957' | xargs -I{} yarn fetch --ws 'wss://kusama-rpc.polkadot.io' --from {} --to {}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment