> ## Documentation Index
> Fetch the complete documentation index at: https://docs.bestinslot.xyz/llms.txt
> Use this file to discover all available pages before exploring further.

# BIP-322

> Verify BIP-322 signatures using the Best in Slot API.

[BIP-322](https://github.com/bitcoin/bips/blob/master/bip-0322.mediawiki) is a Bitcoin standard for signing arbitrary messages with a Bitcoin address. It lets a wallet prove ownership of an address without making an on-chain transaction, which is useful for authentication, access control, and verifying wallet ownership off-chain.

## Verify BIP-322 signature

*Available on: Basic, Pro, Dedicated*

```
GET https://api.bestinslot.xyz/v3/bip322/verify
```

Verifies a BIP-322 signature and returns whether it is valid for the given address and message.

### Parameters

<ParamField query="address" type="string" required>
  The Bitcoin address of the signer.
</ParamField>

<ParamField query="signature_b64" type="string" required>
  The signature, base64-encoded.
</ParamField>

<ParamField query="message_b64" type="string" required>
  The signed message, base64-encoded.
</ParamField>

### Example

```bash theme={null}
curl "https://api.bestinslot.xyz/v3/bip322/verify?address=bc1puhgw5ftrcnzfkkzrmzw8cuwmejjzaf5y2ql06cdrn002095dw8fs803glh&signature_b64=AUEde3at2iDQWz5VrXMxeOv8uIwTOlONPoRsO8wmA4iXz5ssIHLXxDP3fjVkb%2Fyp0pxjgwamKq1oe15fSV6wAOzUAQ%3D%3D&message_b64=bGlzdGVuaW5nIHRvIHN0YXJzIGJ5IHRoZSB4eA%3D%3D"
```

### Response

```json theme={null}
{
    "data": true,
    "block_height": 799062
}
```

`data` is `true` if the signature is valid, and `false` otherwise.
