getBalances

Get balances from one or multiple addresses

Spec

getBalances(addresses: string | string[]);

*addresses supports type string, but it's syntactic sugar, the response won't change

Example

await Client.getBalances(['7VW3WKTRDRI7DE6345LEN23C3FDUOT7H']);

Response

{
  "7VW3WKTRDRI7DE6345LEN23C3FDUOT7H": {
    "base": {
      "stable": 8786869563,
      "pending": 0,
      "stable_outputs_count": 16,
      "pending_outputs_count": 0,
      "total": 8786869563
    }
  }
}

Last updated