Get the balance

🌐 GET

/v1/balance/:account

This is a simple object representing the available funds in the account. An account is essentially the public key of the wallet. Make sure the wallet is registered on our network before you can use it. you can do so by opening an account.

The balance object has the following properties:

  • account: The account id you are querying
  • available: The available balance object containing:
    • amount: The amount of funds available as an integer string that includes the decimals. For example: "1000000000" means 1 with 9 decimals.
    • decimals: The number of decimals in the amount.
    • uiAmountString: The amount as a string with the correct number of decimals. For example: "1.00"
    • currency: The currency of the amount. For example: "usd"
    • guarantor: The issuer of the currency. For example: "university"

Example query:

curl -X GET \
-H "Authorization: Bearer <JWT_TOKEN>" \
https://api.aire.pr1mer.tech/v1/balance/<ACCOUNT_ID>