Skip to main content

SubmitProposal()

atmon3rLess than 1 minute

Info

This doc is generated with

SubmitProposal()

import { defaultRegistryTypes } from "@cosmjs/stargate";
 
const foundMsgType = defaultRegistryTypes.find(
  (element) => element[0] === "/cosmos.group.v1.MsgSubmitProposal"
)
  
const finalMsg = {
  typeUrl: foundMsgType[0],
  value: foundMsgType[1].fromPartial({
    "groupPolicyAddress": "",
    "proposers": [],
    "metadata": "",
    "messages": [],
    "exec": 0,
    "title": "",
    "summary": ""
}),
}

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