Update Stream

const updateParams : UpdateParams = {
    endTime: , 
    startTime, 
    streamId, 
    streamRate 
}

const payload = await multisigService1.update(updateParams);
const result = await wallet.signAndTransactions(payload);

const successValue = (result[result.length - 1].status as FinalExecutionStatus).SuccessValue;
if (!successValue) throw new Error("successValue is missing");
const requestId = Number(Buffer.from(successValue, "base64").toString());

const confirmPayload = await multiSigService2.confirm({ requestId: Number(requestId) });
const result = await wallet.signAndTransactions(payload);

Last updated