Package aim to creating account abstraction
npm install @peter-present/account
- Or if you use
yarn
yarn add @peter-present/account
const wallet = new Wallet({
rpcUrl: 'your-rpc',
networkConfig,
});
walletInfo = await wallet.createKeyring(PASSWORD, walletInfo);
const account = await wallet.addAccount(AccountType.EVM);