@renegade-fi/core
Version:
VanillaJS library for Renegade
10 lines • 436 B
JavaScript
import { GET_BALANCES_ROUTE } from "../constants.js";
import { getRelayerWithAuth } from "../utils/http.js";
import { getWalletId } from "./getWalletId.js";
export async function getBalances(config) {
const { getBaseUrl } = config;
const walletId = getWalletId(config);
const res = await getRelayerWithAuth(config, getBaseUrl(GET_BALANCES_ROUTE(walletId)));
return res.balances;
}
//# sourceMappingURL=getBalances.js.map