Skip to main content
Version: 10.8.0

Type Alias: waitForTransactionOptions

waitForTransactionOptions = object

Defined in: src/types/lib/index.ts:325

Properties​

lifeCycleRetries?​

optional lifeCycleRetries?: number

Defined in: src/types/lib/index.ts:330

Define the number of retries before throwing an error for the transaction life cycle when the transaction is not found after it had a valid status. This is useful for nodes that are not fully synced yet when connecting to service that rotate nodes.


retries?​

optional retries?: number

Defined in: src/types/lib/index.ts:334

Define the number of retries before throwing an error


retryInterval?​

optional retryInterval?: number

Defined in: src/types/lib/index.ts:338

Define the time interval between retries in milliseconds


successStates?​

optional successStates?: (TransactionFinalityStatus | TransactionExecutionStatus)[]

Defined in: src/types/lib/index.ts:342

Define which states are considered as successful


errorStates?​

optional errorStates?: (TransactionFinalityStatus | TransactionExecutionStatus)[]

Defined in: src/types/lib/index.ts:346

Define which states are considered as errors