# Validating addresses

<mark style="color:green;">`POST`</mark> `/api/public/v1/addresses/validate`

This endpoint validates wallet addresses.

Make sure to supply `application/json` in the `Content-Type` header.

**Headers**

| Name          | Value              |
| ------------- | ------------------ |
| Content-Type  | `application/json` |
| Authorization | `Bearer <api_key>` |

**Request Body**

<table><thead><tr><th width="126">Name</th><th width="111">Type</th><th width="105">Required</th><th>Description</th></tr></thead><tbody><tr><td>address</td><td>string</td><td>Yes</td><td>Recipient wallet address.</td></tr><tr><td>network</td><td>string</td><td>Yes</td><td>Network code. Refer to <a href="../api-basics/supported-currencies">Supported Currencies</a>.</td></tr></tbody></table>

{% code overflow="wrap" %}

```bash
## Validate address
curl -X "POST" "https://api.txn.io/api/public/v1/addresses/validate" \
     -H 'Content-Type: application/json' \
     -H 'Authorization: Bearer ' \
     -d $'{
  "address": "0x2c3520115802AF7864c5Bbf0518005037C739851",
  "network": "polygon:usdcv2"
}'
```

{% endcode %}

**Response**

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

```json
{
  "data": {},
  "status": "ok",
  "jsonapi": {
    "version": "1.0"
  }
}

// Address format is valid.
```

{% endtab %}

{% tab title="HTTP 422" %}

```json
{
  "errors": [
    {
      "status": 422,
      "title": "Invalid address",
      "code": "invalid_address"
    }
  ]
}

// Invalid address format.
```

{% endtab %}

{% tab title="HTTP 422" %}

```json
{
  "errors": [
    {
      "status": 422,
      "title": "We couldn’t send funds to this address, please try another address",
      "code": "address_has_high_risk_score"
    }
  ]
}

// Address is evaluated by Txn as high-risk.
```

{% endtab %}

{% tab title="HTTP 404" %}

```json
{
  "errors": [
    {
      "status": 404,
      "title": "Record not found",
      "code": "network_not_found"
    }
  ]
}

// Network code not found.
```

{% endtab %}
{% endtabs %}
