2. Send Move coin
This tutorial covers multiple ways to send coins on the Initia blockchain, and how to send transactions on Initia and Minitias.
Step 1: Get coin from faucet (Optional)
Get Testnet INIT tokens from the Initia Faucet if the account does not hold any tokens. See Get INIT token.
Step 2: Send Coin
Check balances before sending coin.
> initiad query bank balances [addr] \
--node [rpc-url]:[rpc-port]
balances:
- amount: "100000000"
denom: uinit
pagination:
next_key: null
total: "0"
> initiad query bank balances [addr] \
--node [rpc-url]:[rpc-port]
balances: []
pagination: null
TIP: On Cosmos ecosystem, the u prefix on the token denom defines as μ(0.000001). The above example with 100,000,000 uinit means 100 INIT.
Send coin
> initiad tx bank send [key-name] [addr] 100000uinit \
--gas auto --gas-adjustment 1.5 --gas-prices 0.15uinit \
--node [rpc-url]:[rpc-port] --chain-id [chain-id]
gas estimate: 909531
auth_info:
fee:
amount:
- amount: "136430"
denom: uinit
gas_limit: "909531"
granter: ""
payer: ""
signer_infos: []
tip: null
body:
extension_options: []
memo: ""
messages:
- '@type': /cosmos.bank.v1beta1.MsgSend
amount:
- amount: "100000"
denom: uinit
from_address: init17exjfvgtpn5ne4pgmuatjg52mvvtj08773tgfx
to_address: init1ehg0xxyksp69kfsvq8k336e7mpscf29nt50sjl
non_critical_extension_options: []
timeout_height: "0"
signatures: []
confirm transaction before signing and broadcasting [y/N]: y
code: 0
codespace: ""
data: ""
events: []
gas_used: "0"
gas_wanted: "0"
height: "0"
info: ""
logs: []
raw_log: '[]'
timestamp: ""
tx: null
txhash: A33D7F2E8472506FCC8C1C480817C040B19D0340766B861781D5A822AD55D882
Check balances after sending coin.
> initiad query bank balances [addr] \
--node [rpc-url]:[rpc-port]
balances:
- amount: "99763570"
denom: uinit
pagination:
next_key: null
total: "0"
> initiad query bank balances init1ehg0xxyksp69kfsvq8k336e7mpscf29nt50sjl \
--node https://next-stone-rpc.initia.tech:443
balances:
- amount: "100000"
denom: uinit
pagination:
next_key: null
total: "0"
You can check that the Sender's balance has decreased by fee + send amount, and the receiver's balance increased by the send amount.
Last updated