Transaction Maintenance
Monitoring transactions after sending
Waiting Transactions Send to the Pool
async waitJobsTxHashes(jobIds: string[]): Promise<{jobId: string, txHash: string}[]>async waitJobTxHash(jobId: string): Promise<string>Parameters
Returns
Example
const res = await zkAccount.waitJobsTxHashes(['123', '124']);
console.log(`Done ${res.map((j) => `job #${j.jobId}: ${j.txHash}`).join(`\n`)}`);
// output:
// job #123: 0xf1fcf095b4cfd9bda5b18024acf6a1fdf6d9e040a1ec4abed140088b802f73df
// job #124: 0xd5e8960bad7f5964dd3cf3c8853b33e4368c3ec4f3626ef1ea546b5405deeb58Last updated
Was this helpful?