Zebec Protocol
Search
K

Pause/Resume/Cancel Stream

You can pause, resume, or cancel a stream using the respective methods:
const streamBytes = "0xabcdef1234567890.."; // Stream ID
// Pause a stream
const pauseReceipt = await zebecClient.pauseStream(streamBytes);
console.log("Pause Stream Receipt:", pauseReceipt);
// Resume a stream
const resumeReceipt = await zebecClient.resumeStream(streamBytes);
console.log("Resume Stream Receipt:", resumeReceipt);
// Cancel a stream
const cancelReceipt = await zebecClient.cancelStream(streamBytes);
console.log("Cancel Stream Receipt:", cancelReceipt);