Cancel subscription
With sub2-sdk you can directly cancel a subscription by providing its index:
The cancellation will only go through if the account in the provided walletClient is either the subscriber or the recipient. The returned value of viem type TransactionReceipt
gives information about the transaction.
Note: This performs an on-chain transaction and requires that the sub2SDK object was initialised with a walletClient.
Last updated