Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/moesif/moesif-eth-cli

CLI for uploading ABI to Moesif for monitoring Ethereum DApps.
https://github.com/moesif/moesif-eth-cli

abi dapp decoding ethereum monitoring

Last synced: 3 months ago
JSON representation

CLI for uploading ABI to Moesif for monitoring Ethereum DApps.

Awesome Lists containing this project

README

        

# Moesif Ethereum CLI

[Source Code on GitHub](https://github.com/moesif/moesif-eth-cli)

[Package on NPMJS](https://www.npmjs.com/package/moesif-eth-cli)

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](https://www.moesif.com) for [Ethereum DApp analytics and debugging.](https://www.moesif.com/docs/platform/ethereum-web3/)

## Usage

Example:

```shell
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.](https://www.moesif.com/docs/platform/ethereum-web3/)