---
title: "Request a wallet-ownership challenge"
method: GET
path: "/v1/shadow/history/{wallet}/challenge"
tags: ["shadow"]
---

# Request a wallet-ownership challenge

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

## Request

- Base URL: `https://swap-backend.stage.defi.ovh.gala.com`
- URL: `https://swap-backend.stage.defi.ovh.gala.com/v1/shadow/history/{wallet}/challenge`
- Auth: none declared
- TypeScript: <https://skmtc.dev/gala/apis/gala-defi-backend-api/docs/v1/shadow/history/:wallet/challenge/get.ts> (a function with typed inputs; its response is checked against the schema)

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

## Path parameters

- `wallet` string, required

## Response `200`

- ShadowChallengeResponseDto
  - `status` 'success', required
  - `data` ShadowChallengeDataResponseDto, required
    - `nonce` string, required
    - `message` string, required
    - `expiresAt` string, date-time, required

## Other responses

- `400`
- `default`: An error response using the shared backend error envelope.

---

[API](https://skmtc.dev/gala/apis/gala-defi-backend-api.md) - [All operations](https://skmtc.dev/gala/apis/gala-defi-backend-api/llms.txt) - [OpenAPI document](https://skmtc.dev/gala/apis/gala-defi-backend-api/revisions/84f8184e2828?raw)
