Skip to main content

Interface: ConfirmOptions

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​

PropertyType
initialDelayMs?number
pollIntervalMs?number
signal?AbortSignal
timeoutMs?number