Skip to main content

Deposit()

atmon3rLess than 1 minute

Info

This doc is generated with

Deposit()

import { defaultRegistryTypes } from "@cosmjs/stargate";
 
const foundMsgType = defaultRegistryTypes.find(
  (element) => element[0] === "/cosmos.gov.v1.MsgDeposit"
)
  
const finalMsg = {
  typeUrl: foundMsgType[0],
  value: foundMsgType[1].fromPartial({
    "proposalId": "0",
    "depositor": "",
    "amount": []
}),
}

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