Interface: ConfirmOptions
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 theconfirm()call and includinginitialDelayMs. 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 codeCONFIRMATION_ABORTED; nothing is learned about the outcome, so confirm the sameuniqueKeyagain later.
Properties
initialDelayMs?
optionalinitialDelayMs?:number
Defined in: packages/gswap-sdk/dist/index.d.ts:20
pollIntervalMs?
optionalpollIntervalMs?:number
Defined in: packages/gswap-sdk/dist/index.d.ts:19
signal?
optionalsignal?:AbortSignal
Defined in: packages/gswap-sdk/dist/index.d.ts:21
timeoutMs?
optionaltimeoutMs?:number
Defined in: packages/gswap-sdk/dist/index.d.ts:18