Read
Initialize Subs Client
import { SubsSDK, PaymentType, PeriodType, SubsPayment, Keypair } from 'subs-sdk';
// Initialize with wallet private key (keep this secure!)
const subsClient = new SubsSDK("YOUR_WALLET_PRIVATE_KEY", "testnet"); // "testnet" or "mainnet"Get Payments IDs
await subsClient.get_app_payments(
appId, // BigInt
);Get User Subscriptions
await subsClient.get_user_subscriptions(
userAdress, // String
);Get Subscription
await subsClient.get_subscription(
subsId, // String
);Get App Subscribers
Get App Subscriptions
Get Already Subscribed
Get Canceled Subscription
Last updated