Skip to documentation
/

Timeouts & cancellation

Abort a request#

Every request accepts an AbortSignal. A signal already aborted before dispatch produces an aborted transport error with outcomeUnknown: false.

typescript example
.ts
const controller = new AbortController();const pending = client.listProviders({ signal: controller.signal });controller.abort(); try {  await pending;} catch (error) {  // Handle AggregatorTransportError at your backend boundary.}

Timeouts#

The default timeout is 15000 milliseconds. Set timeoutMs on the client or override it for one request. The timeout includes fetching headers and reading the response body.

typescript example
.ts
const result = await client.getGameList(  { currency: 'USD' },  { timeoutMs: 30_000 },);

Mutation cancellation#

Stopping a local fetch does not undo a dispatched provider operation. A cancelled funded launch or free-round request may have outcomeUnknown: true. Preserve the reservation and persisted operation record for reconciliation. Do not automatically resend with a new key.

See error handling and validation before adding retry or cancellation controls to your wallet workflow.

Was this page helpful?