- listSubscriptionsread-only#
List subscription tokens stored in the wallet. Listed tokens are grouped by token family. Only tokens that are within their validity period and not currently in use by a transaction are listed.
Request:
The request arguments must be a ListSubscriptionsRequest object, which has the same fields as ListDiscountsRequest.
Response:
On success, the result is a ListSubscriptionsResponse object.
type ListSubscriptionsRequest = ListDiscountsRequest;
interface ListSubscriptionsResponse {
subscriptions: SubscriptionListDetail[];
}
// Same as DiscountListDetail, but without a token count.
type SubscriptionListDetail = Omit<DiscountListDetail, "tokensAvailable">;