Skip to content

FastLane-Labs/shbundler-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shbundler-sdk

A TypeScript SDK for interacting with Fastlane's 4337 bundler (ShBundler), designed to simplify the submission of UserOperations with built-in support for Fastlane paymasters and Safe-based smart accounts.

Installation

pnpm add @fastlane-labs/shbundler-sdk

Example

import { createShBundlerClient } from "@fastlane-labs/shbundler-sdk";
import { privateKeyToAccount } from "viem/accounts";

const signer = privateKeyToAccount("0xYOUR_PRIVATE_KEY");

const client = await createShBundlerClient({
  signer,
  rpcUrl: "https://rpc.monadlabs.dev", 
  chain: monadTestnet, // a viem chain object
});

await client.sendUserOperation({
  target: "0xTargetAddress",
  data: "0xCallData",
});

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published