Checking Account Balances
Last updated
Last updated
If you have a default key configured for sagacli
(see in sagacli
), you can check its balance by typing:
This will print the balance of the account associated to the default key.
Example:
To check the balance of any account on the network, just type
For example, to check the balance of an account associated with an example key called fundkey
, execute the following command:
This will print the balance (in upsaga
) associated with this account. In this case, it prints:
Example:
It is also possible to combine the two commands i.e. getting the balance and getting the account number, so you do not need to execute two commands, one to get the account number from the key, and another to get the balance associated to that account.
Execute:
Example: