Skip to main content

UpdateParams()

atmon3rLess than 1 minute

Info

This doc is generated with

UpdateParams()

import { defaultRegistryTypes } from "@cosmjs/stargate";
 
const foundMsgType = defaultRegistryTypes.find(
  (element) => element[0] === "/cosmos.staking.v1beta1.MsgUpdateParams"
)
  
const finalMsg = {
  typeUrl: foundMsgType[0],
  value: foundMsgType[1].fromPartial({
    "authority": "",
    "params": {
        "unbondingTime": {
            "seconds": "0",
            "nanos": 0
        },
        "maxValidators": 0,
        "maxEntries": 0,
        "historicalEntries": 0,
        "bondDenom": "",
        "minCommissionRate": ""
    }
}),
}

// const result = await signer.client.signAndBroadcast('address', [finalMsg], "auto", "")