# BIP-322

Endpoints' API-Key-Tier availabilities are written for each endpoint.

## BIP-322 Verify Signature

*<mark style="color:blue;">Included in: Basic, Pro, Dedicated</mark>*

<mark style="color:blue;">`GET`</mark> `https://api.bestinslot.xyz/v3/bip322/verify`

Returns if the given signature is valid for given address.

Sample query: <https://api.bestinslot.xyz/v3/bip322/verify?address=bc1puhgw5ftrcnzfkkzrmzw8cuwmejjzaf5y2ql06cdrn002095dw8fs803glh\\&signature\\_b64=AUEde3at2iDQWz5VrXMxeOv8uIwTOlONPoRsO8wmA4iXz5ssIHLXxDP3fjVkb/yp0pxjgwamKq1oe15fSV6wAOzUAQ==\\&message\\_b64=bGlzdGVuaW5nIHRvIHN0YXJzIGJ5IHRoZSB4eA==>

#### Query Parameters

| Name                                             | Type   | Description                            |
| ------------------------------------------------ | ------ | -------------------------------------- |
| address<mark style="color:red;">\*</mark>        | string | signer address                         |
| signature\_b64<mark style="color:red;">\*</mark> | string | base64 encoded string of the signature |
| message\_b64<mark style="color:red;">\*</mark>   | string | base64 encoded string of the message   |

{% tabs %}
{% tab title="200: OK Success" %}

```json
{
    "data": true,
    "block_height": 799062
}
```

{% endtab %}

{% tab title="429: Too Many Requests Rate limit exceeded" %}

{% endtab %}
{% endtabs %}
