UNPKG

@biconomy/sdk

Version:

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

22 lines 763 B
import { executeSignedQuote } from "./executeSignedQuote.js"; import getQuote, {} from "./getQuote.js"; import { signQuote } from "./signQuote.js"; /** * Executes a quote by fetching it, signing it, and then executing the signed quote. * @param client - The Mee client to use * @param params - The parameters for signing the quote * @returns The hash of the executed transaction * @example * const hash = await execute(client, { * instructions: [ * ... * ] * }) */ export const execute = async (client, params) => { const quote = await getQuote(client, params); const signedQuote = await signQuote(client, { quote }); return executeSignedQuote(client, { signedQuote }); }; export default execute; //# sourceMappingURL=execute.js.map