Transactions
initiad tx
command enables you to modify the chain state by submitting a transaction.
Each modules provides a client-facing transaction interface.
The general syntax for submitting a transaction is:
Send Tokens
To send tokens from one account to another, you can use the following command:
Deploy Move module
First, clone the initia-tutorials repository, which contains the read_write module we’ll be using.
Before building the module, you need to update the module owner’s address to your own address in the Move.toml
configuration file located in ./initia-tutorials/move/read_write
.
Use the following command to parse your Initia address into bytes format, which is your HEX address.
Now, modify the Move.toml
file to include your HEX address:
Build the module using either CLI:
Then, publish the module to the Initia blockchain:
About the upgrade policy:
Policy | Description |
---|---|
COMPATIBLE | Performs a compatibility check during upgrades, ensuring no public function changes or resource layout modifications. |
IMMUTABLE | Marks the modules as immutable, preventing any future upgrades. |
To interact with the module, you can use the following command:
Was this page helpful?