Skip to main content

HTTP API reference › GalaSwap DEX › shadow

GalaSwap DEX — shadow

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.

Parameters​

NameInRequiredTypeDescription
walletpathrequiredstring

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/&#123;wallet&#125;/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.

Parameters​

NameInRequiredTypeDescription
walletpathrequiredstring

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/&#123;wallet&#125;​

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.

Authentication: shadow-bearer

Parameters​

NameInRequiredTypeDescription
walletpathrequiredstring
pagequeryoptionalnumber0-based page index
sizequeryoptionalnumberPage size
__seedqueryoptionalnumberNon-prod only: return N synthetic sample rows so the FE can exercise the render/merge path.
authorizationheaderrequiredstring

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