Resume Stream

// Native Token

const response = await native.resume({
       sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
      receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
      escrow: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
});
console.log(response.message);
// SPL Token

const response = await token.resume({
      sender: 'J75jd3kjsABQSDrEdywcyhmbq8eHDowfW9xtEWsVALy9',
      receiver: "Av6xsgSrnM1UAj4pUZnEWM97iBphph69NPHE8J2ceeYs",
      escrow: "3FUiFXgde4EUsk9gJKxmSh11YN2z7KEW47TErGV8yidk",
      token_mint_address:'zebeczgi5fSEtbpfQKVZKCJ3WgYXxjkMUkNNx7fLKAF',
});
console.log(response.message);

Note : Resume will not work if end time of transaction is crossed.

Last updated