Subscription Methods
Subscription methods of Papaya SDK for managing subscriptions to content creators
subscribe()
subscribe()async subscribe(
author: string,
amount: number | bigint,
period: RatePeriod = RatePeriod.MONTH,
projectId: number
): Promise<ethers.TransactionResponse>const creatorAddress = '0x...';
const tx = await papaya.subscribe(creatorAddress, 10, RatePeriod.MONTH, 0);
await tx.wait();subscribeBySig()
subscribeBySig()unsubscribe()
unsubscribe()unsubscribeBySig()
unsubscribeBySig()getSubscriptions()
getSubscriptions()Last updated