Query active subscriptions from sender
Besides the ability to query arbitrary subscriptions as seen here, sub2-sdk also supports querying active subscriptions with a given sender.
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.
Last updated