Get balances
Get balances from one or multiple addresses (max 100).

Example

1
const addresses = [
2
'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH',
3
'ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q'
4
];
5
6
client.api.getBalances(addresses, function(err, result) {
7
if (err) return console.error(err);
8
console.log(result);
9
});
Copied!

Returns

1
{
2
TMWNLXR42CKIP4A774BQGNVBZAPHY7GH: {
3
base: {
4
stable: 838,
5
pending: 0
6
},
7
's+bzDkwx0TVMtdyf9YU4wEA23oInOUzulO+r5WxBUZs=': {
8
stable: 98,
9
pending: 0
10
},
11
'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=': {
12
stable: 5000,
13
pending: 0
14
}
15
},
16
ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q: {
17
base: {
18
stable: 942956698,
19
pending: 0
20
},
21
'f2TMkqij/E3qx3ALfVBA8q5ve5xAwimUm92UrEribIE=': {
22
stable: 918528,
23
pending: 0
24
},
25
'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=': {
26
stable: 970979,
27
pending: 0
28
}
29
}
30
}
Copied!
Last modified 7mo ago
Copy link