Browse Source

getPaidMembershipTermsById

Joystream Stats 2 years ago
parent
commit
dd6872ca55
1 changed files with 7 additions and 0 deletions
  1. 7 0
      api.ts

+ 7 - 0
api.ts

@@ -501,6 +501,13 @@ export const getValidators = async (
   return snapshot.isSome ? snapshot.unwrap() : [];
   return snapshot.isSome ? snapshot.unwrap() : [];
 };
 };
 
 
+export const getPaidMembershipTermsById = (
+  api: ApiPromise,
+  hash: Hash,
+  id: PaidTermId | number
+): Promise<PaidMembershipTerms> => api.query.members.paidMembershipTermsById.at(hash, id);
+
+
 // media
 // media
 export const getNextEntity = async (
 export const getNextEntity = async (
   api: ApiPromise,
   api: ApiPromise,