Skip to main content

Interface: ConfirmOptions

gSwap SDK 2.0.0-rc.4


gSwap SDK 2.0.0-rc.4 / ConfirmOptions

Interface: ConfirmOptions

Defined in: packages/gswap-sdk/dist/index.d.ts:17

Controls timeout, polling and cancellation of confirmation.

  • timeoutMs (default 60 000): overall deadline, counted from the confirm() call and including initialDelayMs. At least one read is always made.
  • pollIntervalMs (default 2 000, minimum 500): base interval, doubled with jitter up to 8 s.
  • initialDelayMs: wait before the first read. Defaults to 3 000 for a queued RequestTrade (the AutoApplier needs a few seconds) and 0 for liquidity writes (already executed).
  • signal: aborts the wait or an in-flight read. Confirmation then throws an error with code CONFIRMATION_ABORTED; nothing is learned about the outcome, so confirm the same uniqueKey again later.

Properties​

initialDelayMs?​

optional initialDelayMs?: number

Defined in: packages/gswap-sdk/dist/index.d.ts:20


pollIntervalMs?​

optional pollIntervalMs?: number

Defined in: packages/gswap-sdk/dist/index.d.ts:19


signal?​

optional signal?: AbortSignal

Defined in: packages/gswap-sdk/dist/index.d.ts:21


timeoutMs?​

optional timeoutMs?: number

Defined in: packages/gswap-sdk/dist/index.d.ts:18