Staking
Get validators
Lists staking validators with stake, delegators, commission, APR, and staking power for STRK and BTC.
GET
/
staking
/
validators
Get validators
curl --request GET \
--url https://public-api.voyager.online/beta/staking/validators \
--header 'x-api-key: <api-key>'import requests
url = "https://public-api.voyager.online/beta/staking/validators"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.voyager.online/beta/staking/validators', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.voyager.online/beta/staking/validators",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.voyager.online/beta/staking/validators"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.voyager.online/beta/staking/validators")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.voyager.online/beta/staking/validators")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"address": "0x00d3b910d8c528bf0216866053c3821ac6c97983dc096bff642e9a3549210ee7",
"name": "Ready (prev. Argent)",
"imgSrc": "https://dv3jj1unlp2jl.cloudfront.net/argent-assets/hito-orange-on-white.png",
"isVerified": true,
"stakerState": "active",
"totalStakeStrk": "94316184.12303925",
"totalStakeBtc": "255.6972182289891",
"totalStakePercentageStrk": 16.45,
"totalStakePercentageBtc": 6.37,
"totalSelfStake": "1000000000000000000000",
"totalDelegatedStakeStrk": "94315184123039250000000000",
"totalDelegatedStakeBtc": "255697218228989100000000",
"totalDelegators": 34899,
"revenueShare": 0,
"aprStrk": 1213,
"aprBtc": 490,
"rank": "1",
"startTime": 1704067200,
"liveness": 99.9,
"poolInfos": [],
"stakingPower": 2253.25
}
],
"pagination": {
"prev": null,
"next": "/staking/validators?sortBy=rank&sortOrder=ASC&page=2&pageSize=10",
"totalPages": 18,
"pageSize": 10,
"prevPage": null,
"nextPage": 2,
"currentPage": 1
}
}{
"error": "<string>"
}{
"message": "Forbidden"
}{
"error": "<string>"
}{
"message": "Limit Exceeded"
}Authorizations
API key for authentication. Get your key at https://voyager.online/plans
Query Parameters
Field to sort validators by: rank, stakeStrk, stakeBtc, delegators, commission, stakingPower, liveness (30-day window), or liveness90d (90-day window). Defaults to rank.
Available options:
rank, stakeStrk, stakeBtc, delegators, commission, stakingPower, liveness, liveness90d ⌘I
Get validators
curl --request GET \
--url https://public-api.voyager.online/beta/staking/validators \
--header 'x-api-key: <api-key>'import requests
url = "https://public-api.voyager.online/beta/staking/validators"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://public-api.voyager.online/beta/staking/validators', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://public-api.voyager.online/beta/staking/validators",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://public-api.voyager.online/beta/staking/validators"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://public-api.voyager.online/beta/staking/validators")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.voyager.online/beta/staking/validators")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"items": [
{
"address": "0x00d3b910d8c528bf0216866053c3821ac6c97983dc096bff642e9a3549210ee7",
"name": "Ready (prev. Argent)",
"imgSrc": "https://dv3jj1unlp2jl.cloudfront.net/argent-assets/hito-orange-on-white.png",
"isVerified": true,
"stakerState": "active",
"totalStakeStrk": "94316184.12303925",
"totalStakeBtc": "255.6972182289891",
"totalStakePercentageStrk": 16.45,
"totalStakePercentageBtc": 6.37,
"totalSelfStake": "1000000000000000000000",
"totalDelegatedStakeStrk": "94315184123039250000000000",
"totalDelegatedStakeBtc": "255697218228989100000000",
"totalDelegators": 34899,
"revenueShare": 0,
"aprStrk": 1213,
"aprBtc": 490,
"rank": "1",
"startTime": 1704067200,
"liveness": 99.9,
"poolInfos": [],
"stakingPower": 2253.25
}
],
"pagination": {
"prev": null,
"next": "/staking/validators?sortBy=rank&sortOrder=ASC&page=2&pageSize=10",
"totalPages": 18,
"pageSize": 10,
"prevPage": null,
"nextPage": 2,
"currentPage": 1
}
}{
"error": "<string>"
}{
"message": "Forbidden"
}{
"error": "<string>"
}{
"message": "Limit Exceeded"
}