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