api = {
async call(method, params = {}) {
try {
const res = await axios.post(`${this.requestUrl}${method}`, {
...this.requestOptions,
...params
});
return res.data;
} catch (error) {
return new Error(`Invalid request, error: `, error);
};
}
};
balance = {
async get(params = {}) {
const res = await api.call('balance', params);
return res;
}
};