Appearance
Get balances of a multiple accounts
| POST | /accounts/balances |
Request body schema
{}
// Ids of the target accounts
ids: Array<string>;Response schema
Array<
|
|
|
|
|
|
|
|
|
|
|
|
|
>Examples
bash
curl \
-X POST \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
--data '{json-data}' \
"$API_BASE_URL/accounts/balances"ts
const url = "<base-url>/accounts/balances";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
const payload = {}; // <- fill with the expected payload
fetch(url, { headers, method: "POST", body: JSON.stringify(payload) }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/accounts/balances"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
data = {} # <- fill with the expected payload
print(requests.post(url, headers=headers, data=data))