Appearance
List staking validators for account
| GET | /accounts/{id}/staking-validators |
Path parameters
| Name | Type | Description | Required |
|---|---|---|---|
id | string | Id of the target account | ✅ |
Query parameters
| Name | Type | Description | Required |
|---|---|---|---|
cursor | string | Optional cursor to get next pages (based on the next key on query response) | |
sortBy | "balance" | Sort by attribute | |
sortOrder | "asc" | "desc" | Sort order |
Response schema
{}>;}
// Next page cursor
next: string | null;// Array of results
results: Array<{// Validator address
address: string;// Validator APY
apy: string | null;// Validator balance
balance: string | null;// Validator commission rate
commissionRate: string | null;// Description
description: string | null;// Logo URL
logo: string | null;// Validator name
name: string | null;// Validator URL
url: string | null;Examples
bash
curl \
-H "Content-Type: application/json" \
-H "Authorization: Bearer {jwt}" \
"$API_BASE_URL/accounts/{id}/staking-validators"ts
const url = "<base-url>/accounts/{id}/staking-validators";
const headers = {
"Content-Type": "application/json",
Authorization: "Bearer <jwt>"
};
fetch(url, { headers }).then(res => {
console.log(res)
});python
import requests
url = "<base-url>/accounts/{id}/staking-validators"
headers = {
"Content-Type": "application/json",
"Authorization": "Bearer <jwt>"
}
print(requests.get(url, headers=headers))