Install the CLI using npm
npm i @consensusnetwork/parma -g
const { crawler } = require('@consensusnetworks/parma')
const supercrawler = await crawler({
output: './results.json'
})
await supercrawler.start().catch(console.error)
Usage:
parma [chain] [command] [flags]
Chains:
iotex Crawl iotex blockchain
helium Crawl helium blockchain
Commands:
actions Crawl actions
blocks Crawl blocks
Flags:
-h --help Print help (what you are reading now)
-v --version Print version
-n --net Network to use (mainnet or testnet)
-c --count Count of things to crawl
-o --output Location to save the output
Example:
parma iotex actions --net testnet # crawl iotex actions from testnet
parma helium blocks --net production # crawl helium blocks from the production network
Crawl the iotex mainnet
parma iotex blocks --net mainnet
Crawl actions on the helium blockchain and save the result to a s3
bucket
parma helium blocks --output s3://superbucket/chain1/file.json