UNPKG

@biconomy/sdk

Version:

SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.

35 lines 1.32 kB
import type { Prettify } from "viem"; import type { MultichainSmartAccount } from "../account/toMultiChainNexusAccount"; import { type HttpClient, type Url } from "./createHttpClient"; /** * Parameters for creating a Mee client */ export type CreateMeeClientParams = { /** URL for the MEE node service */ url?: Url; /** Polling interval for the Mee client */ pollingInterval?: number; /** Account to use for the Mee client */ account: MultichainSmartAccount; }; export type BaseMeeClient = Prettify<HttpClient & { pollingInterval: number; account: MultichainSmartAccount; }>; export type MeeClient = ReturnType<typeof createMeeClient>; export declare const createMeeClient: (params: CreateMeeClientParams) => import("./decorators/mee").MeeActions & { request: <T>(params: { path: string; method?: "GET" | "POST"; body?: object; params?: Record<string, string>; }) => Promise<T>; extend: <const client extends { [x: string]: unknown; request?: undefined; extend?: undefined; }, const extendedHttpClient extends HttpClient>(fn: (base: extendedHttpClient) => client) => client & extendedHttpClient; pollingInterval: number; account: MultichainSmartAccount; }; //# sourceMappingURL=createMeeClient.d.ts.map