Skip to content

Moesif/moesif-eth-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Moesif Ethereum CLI

Source Code on GitHub

Package on NPMJS

This CLI uploads compiled contract artifacts from your Dapp to Moesif which enables automatic decoding of your captured DApp transactions.

The decoded data allows you to query on the functions, methods, events and parameters in Moesif for Ethereum DApp analytics and debugging.

Usage

Example:

npm install -g moesif-eth-cli
moesif-eth -f ./build/contracts -t MOESIF_MANAGEMENT_API_TOKEN

Replace MOESIF_MANAGEMENT_API_TOKEN with your actual Moesif Management API Token The uploaded files should be compiled contracts in JSON format.

If a token is not provided, the CLI will read the MOESIF_MANAGEMENT_API_TOKEN environment variable by default.

Full help is available below:

Usage: moesif-eth -f [directory] -t [token]

Options:
  --version      Show version number                                   [boolean]
  -f, --folder   Directory of your compiled contracts                 [required]
  -t, --token    Your Moesif uploader api token for Abi files         [required]
  -v, --verbose  verbose level. -vvv is highest verbose level            [count]
  -h, --help     Show help                                             [boolean]

Examples:
  moesif-eth -f ./build/contracts -t     uploads compiled smart contracts
  MOESIF_MANAGEMENT_API_TOKEN               *.json in build/contract folder to
                                            moesif

Obtaining a MOESIF_MANAGEMENT_API_TOKEN

Go to your Moesif account, upper right menu > Management API. Create a token that includes at least the scope create:eth_abi. You can make the token non-expiring.

Overview of Ethereum Web3 DApp Support at Moesif

Please see this document for more details on how Moesif supports decentralized apps built on top of Ethereum Web3 and JSON-RPCs.