SubmitProposal()
Less than 1 minute
SubmitProposal()
import { defaultRegistryTypes } from "@cosmjs/stargate";
const foundMsgType = defaultRegistryTypes.find(
(element) => element[0] === "/cosmos.gov.v1.MsgSubmitProposal"
)
const finalMsg = {
typeUrl: foundMsgType[0],
value: foundMsgType[1].fromPartial({
"messages": [],
"initialDeposit": [],
"proposer": "",
"metadata": "",
"title": "",
"summary": ""
}),
}
// const result = await signer.client.signAndBroadcast('address', [finalMsg], "auto", "")