Skip to main content
Version: 11.x

Type Alias: waitForTransactionOptions

waitForTransactionOptions = object

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

Properties​

lifeCycleRetries?​

optional lifeCycleRetries?: number

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

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:358

Define the number of retries before throwing an error


retryInterval?​

optional retryInterval?: number

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

Define the time interval between retries in milliseconds


successStates?​

optional successStates?: (TransactionFinalityStatus | TransactionExecutionStatus)[]

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

Define which states are considered as successful


errorStates?​

optional errorStates?: (TransactionFinalityStatus | TransactionExecutionStatus)[]

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

Define which states are considered as errors