subscribeBalances method
Implementation
Future<void> subscribeBalances(String chain, String address,
Function(Map<String, BridgeTokenBalance>) callback) async {
service.subscribeBalances(chain, address, (data) {
final Map<String, BridgeTokenBalance> res = {};
data.keys.forEach((token) {
res[token] =
BridgeTokenBalance.fromJson(Map<String, dynamic>.from(data[token]));
});
callback(res);
});
}