Alchemy Logo

createBundlerClientFromExisting

const createBundlerClientFromExisting: <T>(client) => BundlerClient<T>;

Defined in: aa-sdk/core/src/client/bundlerClient.ts:46

Creates a bundler client from an existing public client with the provided transport and chain.

import { createPublicClient } from "viem";
import { createBundlerClientFromExisting } from "@aa-sdk/core";
 
const publicClient = createPublicClient(...);
const bundlerClient = createBundlerClientFromExisting(publicClient);

Type ParameterDefault type

T extends Transport | FallbackTransport

Transport

ParameterTypeDescription

client

PublicClient<T, Chain>

The existing public client to be extended with bundler actions

BundlerClient<T>

A bundler client that extends the functionality of the provided public client

Was this page helpful?