Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@abstraxn/bundler

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@abstraxn/bundler

Abstraxn Bundler package to interact with any bundler node as per ERC4337 standard

  • 0.0.14
  • npm
  • Socket score

Version published
Weekly downloads
80
decreased by-66.94%
Maintainers
2
Weekly downloads
 
Created
Source

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>;
}

Keywords

FAQs

Package last updated on 04 Apr 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc