2.0.0 • Published 1 year ago

@peter-present/account v2.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
1 year ago

Package aim to creating account abstraction

Installation

npm install @peter-present/account
  • Or if you use yarn
yarn add @peter-present/account

Usage

Create your wallet

const wallet = new Wallet({
  rpcUrl: 'your-rpc',
  networkConfig,
});

Create keyring

walletInfo = await wallet.createKeyring(PASSWORD, walletInfo);

Create a account

const account = await wallet.addAccount(AccountType.EVM);