UNPKG

@biconomy/sdk

Version:

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

24 lines 1.05 kB
import { inProduction } from "../account/utils/Utils.js"; import createHttpClient, {} from "./createHttpClient.js"; import { meeActions } from "./decorators/mee/index.js"; /** * Default URL for the MEE node service */ const DEFAULT_MEE_NODE_URL = "https://mee-node.biconomy.io"; export const createMeeClient = (params) => { inProduction() && console.warn(` --------------------------- READ ---------------------------------------------- You are using the Developer Preview of the Biconomy MEE. The underlying contracts are still being audited, and the multichain tokens exported from this package are yet to be verified. -------------------------------------------------------------------------------`); const { url = DEFAULT_MEE_NODE_URL, pollingInterval = 1000, account } = params; const httpClient = createHttpClient(url); const baseMeeClient = Object.assign(httpClient, { pollingInterval, account }); return baseMeeClient.extend(meeActions); }; //# sourceMappingURL=createMeeClient.js.map