Function waitForSupertransactionReceipt

  • Waits for a supertransaction receipt to be available. This function polls the MEE service until the transaction is confirmed across all involved chains.

    Parameters

    Returns Promise<GetSupertransactionReceiptPayload>

    Promise resolving to the supertransaction receipt

    Example

    const receipt = await waitForSupertransactionReceipt(meeClient, {
    hash: "0x123..."
    });
    // Returns:
    // {
    // hash: "0x123...",
    // status: "success",
    // receipts: [{
    // chainId: "1",
    // hash: "0x456..."
    // }]
    // }

    Throws

    Will throw an error if:

    • The transaction fails on any chain
    • The polling times out
    • The transaction hash is invalid