> 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/query-active-subscriptions-to-recipient.md).

# Query active subscriptions to recipient

Besides the ability to query arbitrary subscriptions as seen [here](/sub2/sdk/query-subscriptions.md), sub2-sdk also supports querying active subscriptions with a given recipient.

```typescript
const subscriptions: Subscription[] = await sub2SDK.getActiveSubscriptionsToRecipient(recipient);
```

Here, recipient is of type `0x${string}`. The function only returns *active* subscriptions which means subscriptions that are on cooldown or in auction mode.
