Cosmos Transactions

Cosmos transactions, Tx, follow a similar pattern as Ethereum transactions with a few tweaks in the command line interface (CLI). Cosmos is a Proof of Stake consensus network (PoS) operating node that defines transaction requests from deployment to execution by validators.

Like Ethereum, network users pay gas fees and may choose to prioritize the amount of fee they pay. The fees could also depend on the mempool size and network speed. Cosmos is designed to accommodate large transactions, which keeps the fee amount stable. Cosmos transaction chain is referred to as “state changes” —detailing the Application BlockChain Interface (ABCI) functions from the BeginBlock to the DeliverTx and finally to the EndBlock.

  • BeginBlock: The BeginBlock initiates the transaction and pushes it to DeliverTx.

  • DeliverTx: Decodes the transaction, checks/proofread it for malicious messages, then runs the message, runMsgs, before finalizing and propagating the transaction, Tx, to the EndBlock through the deliverState function.

EndBlock: combines actions that completely validate the transaction and publish it to the whole network. Afterward, the nodes commit to the block and state changes using the ABCI “commit” function inherited from the Baseapp.

Last updated