Skip to main content

Function: waitTillCompleted()

function waitTillCompleted(
client,
shardId,
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.

shardId

number

The ID of the shard where the message is processed.

hash

0x${string}

The message hash.

options?

object

options.interval?

number

options.waitTillMainShard?

boolean

Returns

Promise<ProcessedReceipt[]>

Async

Example

await waitTillCompleted(client, 1, hash);

Defined

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