
Security News
Attackers Are Hunting High-Impact Node.js Maintainers in a Coordinated Social Engineering Campaign
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.
eth-toolbox
Advanced tools
Simple Ethereum toolbox
npm install --save eth-toolbox
const ks = await ethToolbox.createKeystore(entropy, password)
entropy: Random numberpassword: Password to decode keystoreReturn serialize keystore
const ks = await ethToolbox.decodeKeystore(keystore, password);
keystore: Deserialize keystorepassword: Password to decode keystoreks = {
address,
privateKey,
}
const tsx = await ethToolbox.sendEther(address, amount, keystore, password);
address: Ethereum addressamount: Amountkeystore: Deserialize keystorepassword: Password to decode keystoretsx = {
from, // Eth address
to, // Eth address
value, // Amount
date, // Date of the transaction
dether: {
detherContract, // Boolean
receive, // Boolean
},
etherscan: { // Etherscan link
kovan,
ropsten,
ether,
},
}
const allTsx = await ethToolbox.getAllTsx(address, network, etherScanKey, providerUrl);
address: Ethereum addressnetwork: Network numberetherScanKey: API key etherscanproviderUrl: Provider URLallTsx = [
{
etherscan, // Etherscan link
value, // Amount
to, // Eth address
from, // Eth address
date, // Date of the transaction
timeStamp, // TimeStamp
error, // Boolean
dether: {
receive, // Boolean
myEther, // Boolean
},
},
...
]
const balance = await ethToolbox.getEthBalance(address, providerUrl);
address: Ethereum addressproviderUrl: Provider URLReturn ether amount in address
const amount = await ethToolbox.accountAmount(address, providerUrl);
address: Ethereum addressproviderUrl: Provider URL{
usd: {
price: 338.73,
balance: 11.70036773046875,
total: 3963.26556134168,
},
eur: {
price: 284.53,
balance: 11.70036773046875,
total: 3329.1056303502733,
},
cny: {
price: 2269.82,
balance: 11.70036773046875,
total: 26557.72868197258,
},
krw: {
price: 386628.54,
balance: 11.70036773046875,
total: 4523696.093094246,
},
jpy: {
price: 38280.56,
balance: 11.70036773046875,
total: 447896.6289282728,
}
}
const seed = await ethToolbox.getSeed(keystore, password);
keystore: Deserialize keystorepassword: Password to decode keystoreReturn seed
const ks = ethToolbox.utils.createVault({ password, seedPhrase, hdPathString });
password: New passwordseedPhrase: Seed phrase (12 words)hdPathStringNew serialized keystore
const dsKeystore = ethToolbox.utils.deserializeKeystore(serializedKeystore);
serializedKeystore: Serialized keystoreDeserialize keystore
const seed = ethToolbox.utils.generateRandomSeed(entropy);
entropyRandom phrase of 12 words
const test = ethToolbox.utils.isAddr(ethAddr);
ethAddr: Ethereum addressReturn true if ethAddr is a Etherem address valid
const formated = ethToolbox.utils.add0x(ethAddr);
ethAddr: Ethereum addressFormated address
const web3 = ethToolbox.utils.getSignedWeb3(privateKey, address)
privateKey: Private keyaddressy: Ethereum addressNew Web3 instance
// use npm
npm install --save eth-toolbox
// use yarn
yarn add eth-toolbox
git clone https://github.com/dethertech/eth-toolbox.git
yarn
yarn run example
git clone https://github.com/dethertech/eth-toolbox.git
cd eth-toolbox
yarn
npm test
# Install ESDoc
yarn
# Run ESDoc.
yarn run:doc
When you find issues, please report them:
FAQs
Ethereum Toolbox
We found that eth-toolbox demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

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.

Security News
Multiple high-impact npm maintainers confirm they have been targeted in the same social engineering campaign that compromised Axios.

Security News
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.