Transactions
This document explains how to influence the blockchain's state by broadcasting transactions.
Transactions include:
- A list of messages.
- An optional memo.
- A fee.
- A signature from a key.
The messages included in a transaction contain the information that will be routed to a proper message handler in the node, which in turn parses the inputs and determines the next state of the blockchain.
Create transactions
Create a wallet
You will first want to create a wallet that you can use to sign transactions.
Create messages
Create and Sign Transaction
Broadcast transaction
The default broadcast mode is block
, which waits until the transaction has been included in a block. This will give you the most information about the transaction, including events and errors while processing.
You can also use sync
or async
broadcast modes.
Check events
If you broadcasted the transaction with block
, you can get the events emitted by your transaction.