@ethereum-alarm-clock/cli
Command-line tool written in JavaScript to interact with the Ethereum Alarm Clock
Last updated a year ago by pkosin .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @ethereum-alarm-clock/cli -g
SYNC missed versions from official npm registry.

npm version Greenkeeper badge

@ethereum-alarm-clock/cli

This package allows you to run an Ethereum Alarm Clock TimeNode and to schedule transactions. It contains testing utilties too.

Contribute

If you would like to hack on @ethereum-alarm-clock/cli or notice a bug, please open an issue or come find us on the Ethereum Alarm Clock Gitter channel and tell us. If you're feeling more ambitious and would like to contribute directly via a pull request, that's cool too. We will review all pull requests and issues opened on this repository. Even if you think something isn't working right or that it should work another way, we would really appreciate if you helped us by opening an issue!

How to use

Install the binary from NPM by typing npm i -g @ethereum-alarm-clock/cli and hitting enter.

To run a TimeNode or schedule a transaction you will need to create a keystore. eac contains some utilities to help out with this.

eac createWallet

will guide you through the steps of creating a keystore.

eac fundWallet <amt> --wallet <wallet_path> --password <string> --providers <urls>

will send <amt> ether to each account in the passed in wallet from a local unlocked account. Notice, you must be running a local node with a local unlocked account to use this utility. Otherwise you can send ether to your wallet accounts in any other way.

If you ever get tired of running a TimeNode, you can drain the funds held in the wallet to an external account like so:

eac drainWallet <target_address> --wallet <wallet_path> --password <string>

Once you have your wallet set up and funded, run a TimeNode with some default params like so: (providers is the comma-separated list of Ethereum node urls)

eac timenode --wallet <wallet_path> --password <string> --providers <urls> --maxDeposit 1

Open up ~/.eac.log for the output, I prefer to follow the output in a new screen:

tail -f ~/.eac.log

Docker

Sample Dockerfile for running the eac.js-cli node with remote web3 provider

Instructions

To create a docker image from the Dockerfile you need copy your wallet encrypted keystore json file to the root directory.

update the wallet file name in the Dockerfileon L#8 and L#13

Next step is to run docker build command

docker build . -t eac.js-cli --build-arg WALLET={WALLET_NAME}

where

  • {WALLET_NAME} filename of the wallet file, has to be located in same dir as Dockerfile

Next running docker image

docker run -it -e PASSWORD={PASSWORD} -e PROVIDER={PROVIDER} eac.js-cli

where

  • {PASSWORD} is a password used to encrypt wallet keystore file
  • {PROVIDER} is an comma-separated list of urls of web3 provider

Want more?

This package is a part of EAC.JS family ~

Current Tags

  • 4.2.1                                ...           latest (a year ago)

35 Versions

  • 4.2.1                                ...           a year ago
  • 4.1.1                                ...           a year ago
  • 4.1.0                                ...           a year ago
  • 4.0.1                                ...           a year ago
  • 4.0.0                                ...           a year ago
  • 3.6.0                                ...           a year ago
  • 3.5.4                                ...           2 years ago
  • 3.5.3                                ...           2 years ago
  • 3.5.2                                ...           2 years ago
  • 3.5.1                                ...           2 years ago
  • 3.5.0                                ...           2 years ago
  • 3.4.4                                ...           2 years ago
  • 3.4.3                                ...           2 years ago
  • 3.4.2                                ...           2 years ago
  • 3.4.1                                ...           2 years ago
  • 3.4.0                                ...           2 years ago
  • 3.3.6                                ...           2 years ago
  • 3.3.5                                ...           2 years ago
  • 3.3.4                                ...           2 years ago
  • 3.3.3                                ...           2 years ago
  • 3.3.2                                ...           2 years ago
  • 3.3.1                                ...           2 years ago
  • 3.3.0                                ...           2 years ago
  • 3.2.1                                ...           2 years ago
  • 3.2.0                                ...           2 years ago
  • 3.1.3                                ...           2 years ago
  • 3.1.2                                ...           2 years ago
  • 3.1.1                                ...           2 years ago
  • 3.1.0                                ...           2 years ago
  • 3.0.7                                ...           2 years ago
  • 3.0.6                                ...           2 years ago
  • 3.0.4                                ...           2 years ago
  • 3.0.3                                ...           2 years ago
  • 3.0.2                                ...           2 years ago
  • 3.0.1                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 35
Last Day 0
Last Week 35
Last Month 0
Dependencies (18)
Dev Dependencies (6)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |