createBundlerClientFromExisting

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

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

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

Example

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

Type Parameters

Type ParameterDefault type

T extends Transport | FallbackTransport

Transport

Parameters

ParameterTypeDescription

client

PublicClient<T, Chain>

The existing public client to be extended with bundler actions

Returns

BundlerClient<T>

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