# Request authentication

<mark style="color:green;">`POST`</mark> `/auth/address-check`

This endpoint is designed to be executed on the server-side as part of our secure authentication process. It validates the integrity and authenticity of a wallet address using a token received during the frontend login procedure. This verification step is crucial for ensuring that the wallet address in question is legitimately associated with the current user session, enhancing the overall security of our system.

#### Request format

To initiate the verification process, a POST request should be sent to this endpoint with a JSON payload containing two key pieces of information: the `wallet` address to be verified and the `token` received from the frontend after the initial login phase.

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

<table><thead><tr><th width="210">Name</th><th>Type</th><th width="278">Description</th><th>Required</th></tr></thead><tbody><tr><td>wallet</td><td>string</td><td>requested amount </td><td>YES</td></tr><tr><td>token</td><td>string</td><td>token for verification</td><td>YES</td></tr></tbody></table>

**Response**

{% tabs %}
{% tab title="200" %}

```json
{
  "status": 200,
  "valid": <true/false>
}
```

{% endtab %}

{% tab title="400" %}

```json
{
  "code": 400,
  "message": <error message>
}
```

{% endtab %}
{% endtabs %}

Once you obtain the token, follow the instructions on this page:
