---
title: "Request Solana challenge"
method: POST
path: "/challenge/request/solana"
tags: ["Challenge"]
---

# Request Solana challenge

`POST /challenge/request/solana`

## Request body

- SolanaChallengeRequestDto
  - `domain` string, hostname, required — RFC 4501 dns authority that is requesting the signing.
  - `statement` string — Human-readable ASCII assertion that the user will sign, and it must not contain ` `.
  - `uri` string, uri, required — RFC 3986 URI referring to the resource that is the subject of the signing (as in the __subject__ of a claim).
  - `expirationTime` string, date-time — ISO 8601 datetime string that, if present, indicates when the signed authentication message is no longer valid.
  - `notBefore` string, date-time — ISO 8601 datetime string that, if present, indicates when the signed authentication message will become valid.
  - `resources` string[] — List of information or references to information the user wishes to have resolved as part of authentication by the relying party. They are expressed as RFC 3986 URIs separated by new lines.
  - `timeout` number, required — Time in seconds before the challenge is expired
  - `network` 'mainnet' | 'testnet' | 'devnet', required — The network where Contract Accounts must be resolved.
  - `address` string, required — Solana address with a length of 32 - 44 characters that is used to perform the signing

## Response `201`

The back channel challenge containing the id to store on the api and the message to be signed by the user

- SolanaChallengeResponseDto
  - `id` string, required — 17-characters Alphanumeric string Secret Challenge ID used to identify this particular request. Is should be used at the backend of the calling service to identify the completed request.
  - `profileId` string, required — Unique identifier with a length of 66 characters
  - `message` string, required — Message that needs to be signed by the end user

---

[API](https://skmtc.dev/moralis/apis/auth-api.md) · [All operations](https://skmtc.dev/moralis/apis/auth-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/moralis/auth-api/revisions/f54aabf6dd91/schema)
