0.0.15 • Published 1 year ago

@abstraxn/bundler v0.0.15

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

Bundler

In the realm of ERC-4337, the role of a bundler is paramount within the infrastructure. This fundamental concept is indispensable for the seamless operation of account abstraction across all networks leveraging the Ethereum Virtual Machine (EVM). Bundlers serve as key orchestrators, facilitating the aggregation and management of transactions, thereby enhancing the efficiency and effectiveness of the account abstraction paradigm.

Installation

Using npm package manager

npm i @abstraxn/bundler

OR

Using yarn package manager

yarn add @abstraxn/bundler

configuration

KeyDescription
bundlerUrlRepresent ERC4337 spec implemented bundler url. you can get one from abstraxn dashboard. Alternatively you can supply any of your preferred
chainIdThis represents the network your smart wallet transactions will be conducted on. Take a look following Link for supported chain id's
entryPointAddressSince entrypoint can have different addresses you can call getSupportedEntryPoints() on bundler instance for supported addresses list
// This is how you create bundler instance in your dapp's
import { IBundler, Bundler } from "@abstraxn/bundler";

// Make use of core-types package
import { ChainId } from "@abstraxn/core-types";

const bundler: IBundler = new Bundler({
  bundlerUrl: "",
  chainId: ChainId.POLYGON_MAINNET,
  entryPointAddress: "",
});

Following are the methods that can be call on bundler instance

export interface IBundler {
  estimateUserOpGas(userOp: Partial<UserOperation>): Promise<UserOpGasResponse>;
  sendUserOp(userOp: UserOperation): Promise<UserOpResponse>;
  getUserOpReceipt(userOpHash: string): Promise<UserOpReceipt>;
  getUserOpByHash(userOpHash: string): Promise<UserOpByHashResponse>;
}
0.0.15

1 year ago

0.0.14

1 year ago

0.0.10

1 year ago

0.0.11

1 year ago

0.0.12

1 year ago

0.0.13

1 year ago

0.0.9

1 year ago

0.0.8

1 year ago

0.0.7

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago