Pause/Resume Stream

Pause and resume stream can be performed in following way.

// pause
const pauseParams: PauseStreamParams = {
    streamId: "",
};
const pausePayload = await client.pause(pauseParams);
const results = wallet.signAndSendTransactions(pausePayload );


// resume
const resumeParams: ResumeStreamParams = {
    streamId: "",
};
const resumePayload = await client.resume(resumeParams);
const results = await wallet.signAndSendTransactions(resumePayload);

Last updated