Pause Stream

Pause function stops the stream. After this, it will long as user will not resume this . In case the end time is crossed and stream is not resumed stream will be canceled and only the streamed amount will be withdraw able.

// Native Token

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

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

Last updated