Skip to content

consensusnetworks/parma

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parma

JavaScript Style Guide

Usage

Install the CLI using npm

npm i @consensusnetwork/parma -g

JavaScript API

const { crawler } = require('@consensusnetworks/parma')

const supercrawler = await crawler({
  output: './results.json'
})

await supercrawler.start().catch(console.error)

API

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

Examples

Crawl the iotex mainnet

parma iotex blocks --net mainnet

Crawl actions on the helium blockchain and save the result to a s3bucket

parma helium blocks --output s3://superbucket/chain1/file.json

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published