2.0.0 • Published 1 year ago
@peter-present/eth-query v2.0.0
Simple eth and account abstraction query
Installation
npm install @peter-present/eth-query
- Or if you use
yarn
yarn add @peter-present/eth-query
Usage
- This package supports both eth query and account abstraction query. You can create a eth query object by below command.
const ethQuery = new EthQuery(rpcUrl);
const _balance = await ethQuery.getBalance(address);
- If you want to interact with account abstraction query, you can create a account abstraction query
const query = new OperationEthQuery(bundleUrl);
const _hash = query.sendUserOperation(userOperation, entryPoint);