CreateValidator()
Less than 1 minute
CreateValidator()
import { defaultRegistryTypes } from "@cosmjs/stargate";
const foundMsgType = defaultRegistryTypes.find(
(element) => element[0] === "/cosmos.staking.v1beta1.MsgCreateValidator"
)
const finalMsg = {
typeUrl: foundMsgType[0],
value: foundMsgType[1].fromPartial({
"description": {
"moniker": "",
"identity": "",
"website": "",
"securityContact": "",
"details": ""
},
"commission": {
"rate": "",
"maxRate": "",
"maxChangeRate": ""
},
"minSelfDelegation": "",
"delegatorAddress": "",
"validatorAddress": "",
"value": {
"denom": "",
"amount": ""
}
}),
}
// const result = await signer.client.signAndBroadcast('address', [finalMsg], "auto", "")