docs
  • Introduction
  • Getting started
    • Meet the network using CLI
    • Your first transaction
    • Run smart contract
    • Run your own node
    • Ledger Support
  • Architecture
    • Dnode
    • Dncli
    • XFI & Other coins
    • Fees & Gas
    • Addresses
  • Staking
    • Delegate sXFI & LPT
    • Become a validator
    • Rewards & Inflation
    • Slashing
    • More
  • Move VM
    • Modules
    • Scripts
    • Script Arguments
    • Standard Library
    • Events
    • Resources
    • Move Book
    • More
  • Oracles
    • Query Price
  • PegZone
    • Deposit
    • Usage
    • Withdraw
  • Useful Resources
    • Dfinance Website
    • Wallet
    • Move Book
    • Block Explorer
    • Swagger UI
    • Community
    • VSCode Move IDE
Powered by GitBook
On this page

Was this helpful?

  1. Getting started

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:

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.

PreviousMeet the network using CLINextRun smart contract

Last updated 4 years ago

Was this helpful?