Function executeSignedQuote

  • 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.

    Parameters

    Returns Promise<ExecuteSignedQuotePayload>

    Promise resolving to the transaction hash

    Example

    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