Zebec Protocol
Search
⌃K

Cancel Stream

const cancelParams: CancelStreamParams = {
streamId
}
​
const payload = await multisigService1.cancel(cancelParams);
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);