@ethronjs/plugin.eth.accounts
v0.1.0
Published
Ethron.js plugin for generating the accounts file.
Downloads
1
Readme
@ethronjs/plugin.eth.accounts
Ethron.js plugin for working with accounts.
Developed in Dogma, compiled to JavaScript.
Engineered in Valencia, Spain, EU by EthronLabs.
Use
const accounts = require("@ethronjs/plugin.eth.accounts")
accounts.generate()
This task generates the accounts file:
generate({accts, path})
generate(accts, path)
accts
(object), accounts to create.path
(string), file where to save the accounts, such asconf/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
}