cosmos / cosmjs

The Swiss Army knife to power JavaScript based client solutions ranging from Web apps/explorers over browser extensions to server-side clients like faucets/scrapers.

Home Page:https://cosmos.github.io/cosmjs/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Is `MultiSend` method suppored?

ikeda-minden opened this issue · comments

Is MultiSend method suppored?
Or do I need to create some custom interface for MultiSend?

Seems like it's supported: https://github.com/cosmos/cosmjs/blob/main/packages/stargate/src/modules/bank/messages.ts#L4

You can use cosmjs-types to build a msg:

import { MsgMultiSend, MsgSend } from "cosmjs-types/cosmos/bank/v1beta1/tx";

MsgMultiSend.fromPartial({
  ...
})

Or you can also use other lib like osmojs:

import { cosmos } from "osmojs";

cosmos.bank.v1beta1.MessageComposer.withTypeUrl.multiSend({
  ...
})

@ikeda-minden If it's fine, can you close this issue?