docs
Search…
docs
Introduction
Getting started
Meet the network using CLI
Your first transaction
Run smart contract
Run your own node
Ledger Support
Architecture
Staking
Move VM
Oracles
PegZone
Useful Resources
Dfinance Website
Wallet
Move Book
Block Explorer
Swagger UI
Community
VSCode Move IDE
Powered By
GitBook
Your first transaction
Here is guide how to send your first transaction in
dfinance
network using
dncli
.
Transfer coins to recipient
Let's try to send basic coins transfer transactions between two accounts.
Create another account:
1
dncli keys add recipient
Copied!
To send
10 XFI
coins to this account needs to execute the next command:
1
dncli tx bank send <sender> <recipient> 10000000000000000000xfi
Copied!
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:
1
dncli q tx <txId>
Copied!
Also now you can query a recipient account and see how balance updated:
1
dncli q account <address>
Copied!
Replace
<address>
with recipient address to see updated balance.
Previous
Meet the network using CLI
Next
Run smart contract
Last modified
1yr ago
Copy link
Contents
Transfer coins to recipient