> 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-from-sender.md).

# Query active subscriptions from sender

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 sender.

```typescript
const subscriptions: Subscription[] = await sub2SDK.getActiveSubscriptionsFromSender(sender);
```

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