@biconomy/abstractjs
Version:
SDK for Biconomy integration with support for account abstraction, smart accounts, ERC-4337.
39 lines • 1.16 kB
JavaScript
/**
* Executes a previously signed quote through the MEE service.
* This is the final step in the quote flow, where the transaction
* is actually sent to the blockchain.
*
* @param client - The Mee client instance
* @param parameters - Parameters for executing the signed quote
* @param parameters.signedQuote - The signed quote from signQuote
*
* @returns Promise resolving to the transaction hash
*
* @example
* ```typescript
* const result = await executeSignedQuote(meeClient, {
* signedQuote: signedQuotePayload
* });
* // Returns:
* // {
* // hash: "0x123..." // Supertransaction hash
* // }
*
* // Can then wait for receipt:
* const receipt = await waitForSupertransactionReceipt(meeClient, {
* hash: result.hash
* });
* ```
*
* @throws Will throw an error if:
* - The signed quote format is invalid
* - The execution fails
* - The client doesn't have sufficient balance
* - The signature is invalid
*/
export const executeSignedQuote = async (client, params) => client.request({
path: "exec",
body: params.signedQuote
});
export default executeSignedQuote;
//# sourceMappingURL=executeSignedQuote.js.map