Skip to content
docs

AcrossV5Error

Defined in: protocol-swap2-across/src/api.ts:317

A V5 error answer, read from either envelope, with its classification.

optional amountLimit?: object

Defined in: protocol-swap2-across/src/api.ts:330

error.details.amountLimits: which bound the amount crossed and where it lies, base units of the input token.

optional amount?: string

side: "min" | "max"


optional code?: string

Defined in: protocol-swap2-across/src/api.ts:321

error.code, else the top-level code (unauthenticated, policy.amount_out_of_range, …).


optional info?: Swap2RefusalInfo

Defined in: protocol-swap2-across/src/api.ts:332

The CS-13 classification; undefined when neither the code nor the status says what it is.


optional message?: string

Defined in: protocol-swap2-across/src/api.ts:324


optional param?: string

Defined in: protocol-swap2-across/src/api.ts:326

The field the error names (error.param).


optional requestId?: string

Defined in: protocol-swap2-across/src/api.ts:328

Across’s id for the request, for support (error.requestId).


retrySameRequest: boolean

Defined in: protocol-swap2-across/src/api.ts:337

409 conflict.submission_state_unknown: the execution’s outcome is unknown — retry the SAME request with backoff, never quote again (a new quote could fund the transfer twice). Quoting never meets it; kept for completeness.


status: number

Defined in: protocol-swap2-across/src/api.ts:319

HTTP status of the answer.


optional type?: string

Defined in: protocol-swap2-across/src/api.ts:323

error.type (nested envelope only).