Get balances

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

Example

const addresses = [
  'TMWNLXR42CKIP4A774BQGNVBZAPHY7GH',
  'ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q'
];

client.api.getBalances(addresses, function(err, result) {
  console.log(result);
});

Returns

{
  TMWNLXR42CKIP4A774BQGNVBZAPHY7GH: {
    base: {
      stable: 838,
      pending: 0
    },
    's+bzDkwx0TVMtdyf9YU4wEA23oInOUzulO+r5WxBUZs=': {
      stable: 98,
      pending: 0
    },
    'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=': {
      stable: 5000,
      pending: 0
    }
  },
  ULQA63NGEZACP4N7ZMBUBISH6ZTCUS2Q: {
    base: {
      stable: 942956698,
      pending: 0
    },
    'f2TMkqij/E3qx3ALfVBA8q5ve5xAwimUm92UrEribIE=': {
      stable: 918528,
      pending: 0
    },
    'xamdfH5Uk+alv3le0pEA01qSsfZjycyMsqaqHtycJ1M=': {
      stable: 970979,
      pending: 0
    }
  }
}

Last updated