@ethronpi/eth.accounts
v0.1.0
Published
Ethron.js plugin for generating the file of Ethereum accounts.
Downloads
1
Readme
@ethronpi/eth.accounts
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 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
}