0.1.0 • Published 5 years ago

@ethronpi/eth.accounts v0.1.0

Weekly downloads
-
License
-
Repository
bitbucket
Last release
5 years ago

@ethronpi/eth.accounts

NPM version Total downloads

Ethron.js plugin for working with Ethereum accounts.

Developed in Dogma, compiled to JavaScript.

Engineered in Valencia, Spain, EU by EthronLabs.

Use

const accounts = require("@ethronpi/eth.accounts")

accounts.generate()

This task generates the accounts file:

generate({accts, dst})
generate(accts, dst)
  • accts (object), accounts to create.
  • dst (string), file where to save the accounts, such as conf/accounts.js. The file can be .js or .json.

The accounts are set with an object, whose properties represent the accounts:

accountName: {
  balance: "ethers",    //when not set, 0 ETH used
  key: {                //when not set, a new account generated
    pub: "address",
    pvt: "address"
  },
  password: "password"  //when not set, mypass used
}