Skip to main content

Function: waitTillCompleted()

function waitTillCompleted(
client,
hash,
options?): Promise<ProcessedReceipt[]>

Makes it so that the client waits until the processing of the message whose hash is passed.

Parameters

ParameterTypeDescription

client

PublicClient

The client that must wait for action completion.

hash

0x${string}

The message hash.

options?

object

options.interval?

number

options.waitTillMainShard?

boolean

Returns

Promise<ProcessedReceipt[]>

Async

Example

await waitTillCompleted(client, hash);

Defined

@nilfoundation/niljs/src/utils/receipt.ts:15