@riocrypto/common 1.0.939 → 1.0.941
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -383,5 +383,11 @@ class RioClient {
|
|
|
383
383
|
return response.data;
|
|
384
384
|
});
|
|
385
385
|
}
|
|
386
|
+
getCryptoBalance(asset) {
|
|
387
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
388
|
+
const response = yield this.axios.get(`/api/wallet/balances/user/${asset}`);
|
|
389
|
+
return response.data.balance;
|
|
390
|
+
});
|
|
391
|
+
}
|
|
386
392
|
}
|
|
387
393
|
exports.RioClient = RioClient;
|