# Validate Address

## validateAddress

<mark style="color:green;">`POST`</mark> `https://api.harpie.io/v2/validateAddress`

Get insights on the safety of an address. Addresses with no relevant data default to a recommended action of "ALLOW."

#### Request Body

| Name                                      | Type   | Description                                        |
| ----------------------------------------- | ------ | -------------------------------------------------- |
| address<mark style="color:red;">\*</mark> | String | The address you want to query.                     |
| apiKey<mark style="color:red;">\*</mark>  | String | Your API key. You can find this in your dashboard. |

{% tabs %}
{% tab title="200: OK A summary on address security" %}

```typescript
{
    name: string, // The name of the address. 
    // Returns contract name if the address is associated with protocol
    isMaliciousAddress: boolean,
    isAssociatedWithProtocol: boolean,
    tags: {
      THEFT: boolean,
      CYBERCRIME: boolean,
      SANCTIONED: boolean,
      MIXER: boolean,
      BOT: boolean,
      WASH_TRADER: boolean,
      NO_DATA: boolean,
    },
    summary: string,
}
```

{% endtab %}
{% endtabs %}

#### Testing

You can test this query on a visual interface at <https://harpie.io/scanner>.

**Example query:**

```typescript
fetch("https://api.harpie.io/v2/validateAddress", {
    method: "POST",
    headers: {
        'Accept': 'application/json',
        'Content-Type': 'application/json'
    },
    body: JSON.stringify({
        apiKey: "{YOUR API KEY HERE}",
        address: "0x55456cbd1f11298b80a53c896f4b1dc9bc16c731"
    })
})
```

#### Example response:

```json
{
  "summary": "This is a known malicious address. We recommend blocking any transactions sent there.",
  "name": "Malicious Address",
  "isMaliciousAddress": true,
  "isAssociatedWithProtocol": false,
  "tags": {
    "THEFT": true,
    "CYBERCRIME": false,
    "NO_DATA": false,
    "SANCTIONED": false,
    "MIXER": false,
    "BOT": false,
    "WASH_TRADER": false
  }
}
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://harpie.gitbook.io/welcome-to-the-harpie-docs/~/changes/T8YMsU3xPtqI6mFgVEdC/harpie-for-developers/background-check-api/validate-address.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
