Your first transaction
Here is guide how to send your first transaction in dfinance network using dncli.
Let's try to send basic coins transfer transactions between two accounts.
Create another account:
dncli keys add recipient
To send 10 XFI coins to this account needs to execute the next command:
dncli tx bank send <sender> <recipient> 10000000000000000000xfi
Replace <sender> with your account address and <recipient> with <recipient> address.
We use "1000000000000000000xfi" as the amount because by default XFI has 18 decimals places, so to send 10 XFI you have to keep decimals.
After execution, you will get transaction id in the output. To see transaction status execute:
dncli q tx <txId>
Also now you can query a recipient account and see how balance updated:
dncli q account <address>
Replace <address> with recipient address to see updated balance.
Last modified 2yr ago