Skip to content

createBundlerClient

Creates a Bundler Client using the provided configuration parameters, including chain and optional type.

Import

import { createBundlerClient } from "@aa-sdk/core";

Usage

import { createBundlerClient } from "@aa-sdk/core";
import { sepolia } from "viem/chains";
 
const client = createBundlerClient({
  chain: sepolia,
  transport: http("RPC_URL"),
});

Parameters

args

PublicClientConfig & { type?: string } Configuration for creating the Bundler Client, including parameters for the chain, transport, and optional type

Returns

BundlerClient The created Bundler Client with extended public and bundler actions