Transactions
Transactions are the primary way to read and write to the blockchain.
Creating a transaction
Reading contract state
You can read contract state directly using the readContract
function.
Writing contract state
There are 4 ways to prepare a contract call, all of these return the same transaction object.
Acting on a prepared transaction
Transactions have a variety of actions that can be called on them, in all cases this is done by calling the action on the transaction object itself.