---
title: "Get Wallet Nonce"
method: GET
path: "/v2/auth/wallet-nonce"
tags: ["v2 - Viewer Auth"]
---

# Get Wallet Nonce

`GET /v2/auth/wallet-nonce`

## Request

- Base URL: `https://api.jubjubapp.com` (the document declares no server; this is the origin it was published from)
- URL: `https://api.jubjubapp.com/v2/auth/wallet-nonce`
- Auth: HTTP bearer

Issue a fresh SIWE nonce + the canonical message to sign.

The agent must sign the returned `message_to_sign` exactly as
returned (whitespace and line endings included) and POST the
signature plus this nonce to /v2/auth/register-viewer.

## Query parameters

- `address` string, nullable: EVM address that will sign. Omit it for a wallet-built sign-in (wallet_connect with signInWithEthereum): the response then carries only the nonce and chain id, and the wallet writes the message.

## Headers

- `Origin` string, nullable
- `Referer` string, nullable

## Response `200`

Successful Response

- NonceResponse
  - `nonce` string, required
  - `message_to_sign` string, required
  - `expires_at` string, required
  - `chain_id` integer, nullable
  - `wallet_built` boolean

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/jubjubapp/apis/jubjub-api.md) - [All operations](https://skmtc.dev/jubjubapp/apis/jubjub-api/llms.txt) - [OpenAPI document](https://skmtc.dev/jubjubapp/apis/jubjub-api/revisions/353157b296f2?raw)
