UNPKG

avail-js-sdk

Version:

Avail library of functions to interact with blockchain and manipulate transactions

18 lines (17 loc) 627 B
import { H256, TransactionDetails, WaitFor, Client } from "."; export declare class Watcher { private client; private txHash; private blockCountTimeout; private blockHeightTimeout; private waitFor; constructor(client: Client, txHash: Uint8Array | H256 | string, waitFor: WaitFor); withBlockCountTimeout(value: number | null): void; withTxHash(value: Uint8Array | H256 | string): void; withBlockHeightTimeout(value: number | null): void; run(): Promise<TransactionDetails | null>; private determineTimeout; private runFinalized; private runIncluded; private checkBlock; }