Query active subscriptions to recipient

Besides the ability to query arbitrary subscriptions as seen here, sub2-sdk also supports querying active subscriptions with a given recipient.

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.

Last updated