UNPKG

@alchemy/aa-core

Version:

viem based SDK that enables interactions with ERC-4337 Smart Accounts. ABIs are based off the definitions generated in @account-abstraction/contracts

11 lines (10 loc) 784 B
import { type Chain, type Client, type FallbackTransport, type PublicActions, type PublicClient, type PublicClientConfig, type PublicRpcSchema, type Transport } from "viem"; import { type BundlerActions, type BundlerRpcSchema } from "./decorators/bundlerClient.js"; export type BundlerClient<T extends Transport = Transport> = Client<T, Chain, undefined, [ ...PublicRpcSchema, ...BundlerRpcSchema ], PublicActions<T, Chain> & BundlerActions>; export declare const createBundlerClientFromExisting: <T extends Transport | FallbackTransport = Transport>(client: PublicClient<T, Chain>) => BundlerClient<T>; export declare function createBundlerClient<TTransport extends Transport>(args: PublicClientConfig<TTransport, Chain> & { type?: string; }): BundlerClient<TTransport>;