createBundlerClient

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

Import

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

Usage

1import { createBundlerClient } from "@aa-sdk/core";
2import { sepolia } from "viem/chains";
3
4const client = createBundlerClient({
5 chain: sepolia,
6 transport: http("RPC_URL"),
7});

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