# Check if user is a payed subscriber

It is easy with sub2 SDK to check whether a user is subscribed to a given recipient. We can simply use the `isPayedSubscriber` function:

```typescript
const isPayedSubscriber: boolean = await sub2SDK.isPayedSubscriber(
    senderAddress, 
    recipientAddress, 
    minAmount, 
    token, 
    cooldown
);
```

This function will return true only if there is an active paid subscription from `senderAddress` to `recipientAddress` with minimum `minAmount` of `token` and cooldown of `cooldown`.

{% hint style="info" %}
**Note:** This only counts *paid* subscriptions, meaning subscriptions that have performed at least one payment. Thus, subscriptions on the initial delay before the first payment will not count.
{% endhint %}


---

# 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://sub2.gitbook.io/sub2/sdk/check-if-user-is-a-payed-subscriber.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.
