mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-15 01:55:48 +00:00
26 lines
566 B
Plaintext
26 lines
566 B
Plaintext
## getBalances
|
|
|
|
`getBalances(address: string, options: Object): Promise<Array<Object>>`
|
|
|
|
Returns balances for a specified account.
|
|
|
|
### Parameters
|
|
|
|
<%- renderSchema('input/get-balances.json') %>
|
|
|
|
### Return Value
|
|
|
|
This method returns a promise that resolves with an array of objects with the following structure:
|
|
|
|
<%- renderSchema('output/get-balances.json') %>
|
|
|
|
### Example
|
|
|
|
```javascript
|
|
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59';
|
|
return api.getBalances(address).then(balances =>
|
|
{/* ... */});
|
|
```
|
|
|
|
<%- renderFixture('responses/get-balances.json') %>
|