Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

decode-eth

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

decode-eth

Decode is a package to make it easier for you to develop on Ethereum. In particular, it parses tx's submitted to a local testrpc node to make them more readable.

  • 0.1.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
6
Maintainers
1
Weekly downloads
 
Created
Source

Decode

Decode is a package to make it easier for you to develop on Ethereum. In particular, it parses tx's submitted to a local testrpc node to make them more readable.

Use

npm install --save-dev decode-eth

add this script to your package.json: "decode": "node ./node_modules/decode-eth/main.js"

run using npm run decode!

Works with testrpc & ganache-cli:

truffle compile

truffle test

npm run decode

Works with truffle develop:

truffle develop

compile

test

new tab:

npm run decode

Note: for it to work, you need to have a populated build folder. So you need to run compile before.

Features

For every transaction that ocurred on your blockchain, decode will show:

  • the block number
  • which account it is being sent from (e.g. accounts[0]) & to (e.g. MyContract)
  • if a contract is being created, which one
  • all events from the transaction
  • amount of ETH sent
  • amount of gas used

At the end, it will output all built contracts & their deployed addresses

FAQs

Package last updated on 01 Jun 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc