The Balance factory is used to query the balance of specific addresses for a given coin and chain. It accepts a list of address objects and returns an array of balance information including the address, balance amount, coin, and chain.
### Input
- `dataPath`: Optional path where to find the addresses array, defaults to `result`
- `confirmations`: Optional confirmations param, defaults to `6`
- `addresses`: A list of addresses to query
```json
[
{
"address": "Address to query",
"coin": "Optional currency to query, defaults to btc.",
"chain": "Optional chain to query, defaults to mainnet."
},
...
]
]
Output
[
{
"address": "string",
"balance": 0,
"coin": "string",
"chain": "string",
"warning?": "string"
},
...
]