Subscription Management
This section covers the functions for creating and managing streaming subscriptions between users.
subscribe
function subscribe(address author, uint96 subscriptionRate, uint256 projectId) externalParameters
Description
Example
// Subscribe to an author at 0.001 tokens per second for project 1
await papayaContract.subscribe(
"0xauthor...",
ethers.utils.parseEther("0.001"),
1
);unsubscribe
Parameters
Description
Example
Related Events
Related Errors
Last updated