Listen for incoming payments
const unwatch: WatchEventReturnType = sub2SDK.watchIncomingPayments(recipientAddress, callbackFn);interface Payment {
sender: `0x${string}`,
recipient: `0x${string}`,
subscriptionIndex: bigint,
sponsor: `0x${string}`,
amount: bigint,
token: `0x${string}`,
protocolFee: bigint,
processingFee: bigint,
processingFeeToken: `0x${string}`,
terms: bigint,
}Last updated