Skip to main content
There are two invariant types of transactions in the Apophis SDK:
  • CosmosTx is the fundamental transaction type for all transactions in Cosmos, including
  • CosmosTxSignal, which wraps a CosmosTx into multiple signals specialized for use in a GUI.

CosmosTx

TODO

CosmosTxSignal

A CosmosTxSignal is an invariant that wraps a CosmosTx with various signals for use in a GUI. Unlike the regular CosmosTx, this invariant takes a signal of messages, and automatically updates and re-estimates the gas of the transaction when the messages change. It also periodically refreshes the estimage to account for changes in the state of the blockchain while the user is still contemplating their transaction. The following example demonstrates the use of the Cosmos.signalTx factory method using Preact as its frontend framework:
The above cosmos-gas-estimate component is a custom element from the complementary Cosmos Components library.