New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

ethernal

Package Overview
Dependencies
Maintainers
1
Versions
50
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ethernal

CLI interface for Ethernal

  • 0.7.5
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
34
decreased by-67.31%
Maintainers
1
Weekly downloads
 
Created
Source

ethernal-cli

CLI to sync transactions with Ethernal.

Truffle artifacts are also synced through this CLI, if you are using Hardhat, use this plugin.

If you are looking for more detailed doc about Ethernal: https://doc.tryethernal.com

Installation

OSX / Windows

npm install ethernal -g

Linux

On Linux systems, Ethernal CLI relies on libsecret to securely store your password. Make sure it's installed by running the following command, depending on your distribution:

  • Debian/Ubuntu: sudo apt-get install libsecret-1-dev
  • Red Hat-based: sudo yum install libsecret-devel
  • Arch Linux: sudo pacman -S libsecret

Source

Then run:

npm install ethernal -g

Usage

Login

First, you need to login using your Ethernal credentials (only needed once).

ethernal login

Listening to transactions

This will synchronize blocks, transactions & contracts to Ethernal The CLI will connect to the URL set on the workspace you used last.

ethernal listen

For blocks & transactions, the whole object returned by web3 is synchronized with Ethernal.

Options

-w

Connect to the specified workspace

ethernal listen -w workspace

-d

Specifiy which directory to watch (one or more, separated by a comma)

ethernal listen -d ~/solidity/project,~/solidity/project2

-s

Only listen to transactions, do not watch artifacts for changes. Useful if your blockchain is not on your local environment. Will be ignore if the -l flag is passed

ethernal listen -s

-l

Only watch artifact changes, do not listen to transactions. Useful if you ran the ethernal listen -s somewhere else.

ethernal listen -l

-h

Display help

ethernal listen -h

Artifacts Uploading

Running the listen command in a Truffle project will automatically watch your artifacts, and upload the data everytime it changes. You can also pass a path to watch with the -d flag.

ethernal listen -d ~/solidity/my-project

Watch multiple directories at once:

ethernal listen -d ~/solidity/my-project,~/solidity/other-project

The CLI will watch artifacts in your build folder, and synchronize the following fields:

  • contractName
  • abi
  • ast
  • source

Syncing a range of blocks

This will sync all blocks in a range (start and end of the range included), and their transactions. It takes two mandatory parameters: -f or --from is the first block to be synchronized, and -t or --to which is the last block.

ethernal sync -f 1 -t 10

Keywords

FAQs

Package last updated on 02 Jun 2021

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