Nincompoops Producing Methane

    @gxchain2/wallet
    TypeScript icon, indicating that this package has built-in type declarations

    0.0.1 • Public • Published

    @gxchain2/wallet

    NPM Version License

    Wallet based on ethereumjs-wallet, for managing local accounts

    INSTALL

    npm install @gxchain2/wallet

    USAGE

    const manager = new AccountManager('/root/.gxchain2/keystore');
    
    // new account
    const { address } = await manager.newAccount('passphrase');
    console.log('new address:', address);
    
    // unlock account
    await manager.unlock(address, 'passphrase');
    
    // get account private key
    console.log(manager.getPrivateKey(address).toString('hex'));

    License

    GNU General Public License v3.0

    Keywords

    none

    Install

    npm i @gxchain2/wallet

    DownloadsWeekly Downloads

    6

    Version

    0.0.1

    License

    GPL-3.0-or-later

    Unpacked Size

    54.8 kB

    Total Files

    24

    Last publish

    Collaborators

    • lanhaoxiang
    • samlior