Zebec Protocol
Search
K

Updating a Stream

To update a stream, use the updateStream() method:
const streamName = "UpdatedStream";
const streamBytes = "0xabcdef1234567890.."; // Stream ID
const startTime = 1657008000;
const endTime = 1659696000;
const amount = "200";
const receipt = await zebecClient.updateStream(
streamName,
streamBytes,
tokenAddress,
startTime,
endTime,
amount
);
console.log("Update Stream Receipt:", receipt);