Checking Account Balances
View Account Balance of the Default Account
If you have a default key configured for sagacli
(see Configuring a Default Key in sagacli
), you can check its balance by typing:
This will print the balance of the account associated to the default key.
Example:
View Account Balance of any Account
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:
You can retrieve the account number associated to a key by executing sagacli keys show -a <keyname>
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:
Last updated