Zebec
Search…
Cancel Stream
Cancel stream helps the sender to cancel the stream whenever they want within stream period.
// Native Token
const response = await native.cancel({
sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
pda: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
});
console.log(response.message);
// SPL Token
const response = await token.cancel({
sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
pda: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
token:'zebeczgi5fSEtbpfQKVZKCJ3WgYXxjkMUkNNx7fLKAF',
});
console.log(response.message);
Note: You can cancel the scheduled transaction before the start time reaches.
Copy link