Skip to main content

HTTP API reference › GalaSwap DEX › shadow

GalaSwap DEX — shadow

Source commit: unknown. Generated: 2026-10-26T22:08:07.734Z.

3 operations in this group.

GET /v1/shadow/history/{wallet}/challenge​

ShadowController_getChallenge

Request a wallet-ownership challenge

Returns a single-use nonce + message to personal_sign, to bootstrap an owner session for shadow history.

Security: []

Parameters​

NameInRequiredTypeDescription
walletpathyesstring

Responses​

200 —​

Content type: application/json

Schema: ShadowChallengeResponseDto

FieldTypeRequiredDescription
statusstring enum: successyes
dataShadowChallengeDataResponseDtoyes

400 —​

Content type: application/json

Schema: ShadowHttpErrorResponseDto

FieldTypeRequiredDescription
statusCodenumberyes
messageoneOf: string | array<string>yes
errorstringno

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

POST /v1/shadow/history/{wallet}/session​

ShadowController_createSession

Exchange a signed challenge for a session token

Verifies the EIP-191 signature against the issued challenge and returns a wallet-bound bearer token.

Security: []

Parameters​

NameInRequiredTypeDescription
walletpathyesstring

Request body​

Required: yes

application/json​

Schema: ShadowSessionRequestDto

FieldTypeRequiredDescription
signaturestringyespersonal_sign signature of the challenge message returned by /challenge

Responses​

200 —​

Content type: application/json

Schema: ShadowSessionResponseDto

FieldTypeRequiredDescription
statusstring enum: successyes
dataShadowSessionTokenResponseDtoyes

400 —​

Content type: application/json

Schema: ShadowHttpErrorResponseDto

FieldTypeRequiredDescription
statusCodenumberyes
messageoneOf: string | array<string>yes
errorstringno

401 —​

Content type: application/json

Schema: ShadowHttpErrorResponseDto

FieldTypeRequiredDescription
statusCodenumberyes
messageoneOf: string | array<string>yes
errorstringno

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example request​

[]

Example response​

[]

GET /v1/shadow/history/{wallet}​

ShadowController_getHistory

Owner's shadow swap history

Owner-scoped list of the wallet's shadow swaps (isShadow: true), paged via page (0-based) + size. Requires a wallet-bound Bearer session token (from /challenge + /session); the non-prod ?__seed path returns synthetic rows without auth for FE development.

Security: [{"shadow-bearer":[]}]

Parameters​

NameInRequiredTypeDescription
walletpathyesstring
pagequerynonumber0-based page index
sizequerynonumberPage size
__seedquerynonumberNon-prod only: return N synthetic sample rows so the FE can exercise the render/merge path.
authorizationheaderyesstring

Responses​

200 —​

Content type: application/json

Schema: ShadowHistoryResponseDto

FieldTypeRequiredDescription
statusstring enum: successyes
dataShadowHistoryDataResponseDtoyes

400 —​

Content type: application/json

Schema: ShadowHttpErrorResponseDto

FieldTypeRequiredDescription
statusCodenumberyes
messageoneOf: string | array<string>yes
errorstringno

401 —​

Content type: application/json

Schema: ShadowHttpErrorResponseDto

FieldTypeRequiredDescription
statusCodenumberyes
messageoneOf: string | array<string>yes
errorstringno

default — An error response using the shared backend error envelope.​

Content type: application/json

Schema: ApiErrorEnvelope

FieldTypeRequiredDescription
statusintegeryes
errorbooleanyes
messagestringyes
errorKeystringno

Example response​

[]

Previous group: token-registry