This version (v0.7) has not been published to npm yet.
Skip to content

Reference / @getenginex/sdk / CallOptions

CallOptions ​

Options accepted by every SDK method.

Properties ​

fetchOptions? ​

optional fetchOptions?: FetchOptions

Extra fetch options for this specific request.


idempotencyKey? ​

optional idempotencyKey?: string

Idempotency key (Idempotency-Key header) to repeat an operation without duplicating it: after a network error, call again with the same key. Only idempotent methods (those that move money, like deposit and withdrawal) use it; on the others it is ignored. Without it, the SDK generates a key per call and reuses it on the internal retry after renewing the session. Use a unique value per operation, e.g. crypto.randomUUID(). Empty text is treated as absent.


signal? ​

optional signal?: AbortSignal

Cancels the request (e.g. TanStack Query's signal).