1.0.4 • Published 2 years ago

@nb-eth/accounts-generator v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
2 years ago

Use it for generating ethereum accounts.

example:

const account = getNewAccount(0); // will return some account random ethereum account with address,private key, and mnemonic

const account getNewAccountFromMnemonic("hedgehog shy vast ask topic wage book business visual shed blur snow", 3);

// this will return:
{
address: 0x3Eb35cCC693B98FA932542ec7C62Ab9B1ce20D27
privateKey: 0xc3ea34c37c83c93ad2060d05bfd82c16da983ea3df78221da9e0ea7c11513c58
mnemonic: hedgehog shy vast ask topic wage book business visual shed blur snow
}