Skip to content
Cosmopediaby Unity Nodes
DiscussionsCosmos-SDKAtomic operations in Cosmos JSForum ↗

Atomic operations in Cosmos JS

Cosmos-SDK1 posts630 viewsLast activity Aug 2021
CL
cliqueOP
Aug 2021

Hi folks,

In Cosmos Javascript SDK or the Terra.js SDK, both support passing multiple messages in a single tx.

In Cosmos:

const txBody = new message.cosmos.tx.v1beta1.TxBody({ messages: [msgSendAny], memo: "" });

In Terra.js

// Constructor for StdTX
constructor(msg: Msg[], fee: StdFee, signatures: StdSignature[], memo?: string);

Are the multiple messages passed guaranteed to be executed within the same block? Basically, I’m trying to understand whether this operation is atomic without interference from other tx. Thanks a lot!

← Back to Discussions