entropyxyz / cli

CLI utility to ease interactions with an Entropy network.
GNU Affero General Public License v3.0
5 stars 0 forks source link

accountBalance + accountBalances #121

Closed mixmix closed 1 week ago

mixmix commented 2 weeks ago

accountBalance

accountBalance(entropy, address) =>

number

accountBalances

accountBalances(entropy, [addressA, addressB]) =>
{
  addressA: {
    balance: number,
    error: null
  },
  addressB: {
    balance: null,
    error: Error
  }
}

NOTE: if one balance fails....

if they all error then throw an error