Update Stream

const now = nowInSec();
const streamRate = NearAmount.parse(0.001);
const startTime = (now + 10).toString();
const endTime = (now + 20).toString(); // 5 min
const updateParams: UpdateStreamParams = {
   streamId: "<streamId>",
   streamRate: streamRate.toString(),
   startTime,
   endTime,
};
const updatePayload = await client.update(updateParams);
const results = await wallet.signAndSendTransactions(updatePayload);

Last updated