UpdateParams()
Less than 1 minute
UpdateParams()
import { defaultRegistryTypes } from "@cosmjs/stargate";
const foundMsgType = defaultRegistryTypes.find(
(element) => element[0] === "/cosmos.slashing.v1beta1.MsgUpdateParams"
)
const finalMsg = {
typeUrl: foundMsgType[0],
value: foundMsgType[1].fromPartial({
"authority": "",
"params": {
"signedBlocksWindow": "0",
"minSignedPerWindow": {},
"downtimeJailDuration": {
"seconds": "0",
"nanos": 0
},
"slashFractionDoubleSign": {},
"slashFractionDowntime": {}
}
}),
}
// const result = await signer.client.signAndBroadcast('address', [finalMsg], "auto", "")