Wait for a transaction to be submitted onchain and return the transaction hash.
import { Engine } from "thirdweb"; const { transactionHash } = await Engine.waitForTransactionHash({ client, transactionId, // the transaction id returned from enqueueTransaction});
function waitForTransactionHash(args: { client: ThirdwebClient; timeoutInSeconds?: number; transactionId: string;}): Promise<{ chain: Readonly; client: ThirdwebClient; maxBlocksWaitTime?: number; readonly transactionHash: `0x${string}`;}>;
The arguments for the transaction.
let args: { client: ThirdwebClient; timeoutInSeconds?: number; transactionId: string;};
let returnType: Promise<{ chain: Readonly; client: ThirdwebClient; maxBlocksWaitTime?: number; readonly transactionHash: `0x${string}`;}>;