Zebec Protocol
Search…
⌃K

Resume Stream

// Native Token
​
const response = await native.resume({
sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
pda: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
});
console.log(response.message);
// SPL Token
​
const response = await token.resume({
sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
pda: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
token:'zebeczgi5fSEtbpfQKVZKCJ3WgYXxjkMUkNNx7fLKAF',
});
console.log(response.message);
​
Note : Resume will not work if end time of transaction is crossed.