> For the complete documentation index, see [llms.txt](https://sub2.gitbook.io/sub2/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://sub2.gitbook.io/sub2/sdk/check-if-user-is-a-payed-subscriber.md).

# 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 %}
