Skip to main content

StoreCode()

atmon3rLess than 1 minute

Info

This doc is generated with

StoreCode()

import { defaultRegistryTypes } from "@cosmjs/stargate";
 
const foundMsgType = defaultRegistryTypes.find(
  (element) => element[0] === "/cosmwasm.wasm.v1.MsgStoreCode"
)
  
const finalMsg = {
  typeUrl: foundMsgType[0],
  value: foundMsgType[1].fromPartial({
    "sender": "",
    "wasmByteCode": {}
}),
}

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