Staking overview
curl --request POST \
--url 'https://api.hypedexer.com/info#stakingOverview' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "stakingOverview"
}
'import requests
url = "https://api.hypedexer.com/info#stakingOverview"
payload = { "type": "stakingOverview" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'stakingOverview'})
};
fetch('https://api.hypedexer.com/info#stakingOverview', 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://api.hypedexer.com/info#stakingOverview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'stakingOverview'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hypedexer.com/info#stakingOverview"
payload := strings.NewReader("{\n \"type\": \"stakingOverview\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hypedexer.com/info#stakingOverview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"stakingOverview\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/info#stakingOverview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"stakingOverview\"\n}"
response = http.request(request)
puts response.read_body[
{
"validator": "0xa82f...62ad",
"name": "Hyper Foundation 2",
"stake": "5436612850910599.0",
"commission": "0.03",
"predictedApr": "0.021680772600000002",
"uptimeFraction": "1.0",
"isActive": true,
"isJailed": false,
"nRecentBlocks": 12,
"time": 1793449450000
}
]{
"error": "Invalid API key"
}Staking
Staking overview
Latest snapshot of every validator: stake, commission, predicted APR, uptime, active and jailed flags, and the number of recent blocks. Snapshots come from our own node; time is the snapshot time.
stake is the raw integer returned by the node, as a string. APR, commission and uptime are fractions (0.03 = 3%).
POST
/
info#stakingOverview
Staking overview
curl --request POST \
--url 'https://api.hypedexer.com/info#stakingOverview' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"type": "stakingOverview"
}
'import requests
url = "https://api.hypedexer.com/info#stakingOverview"
payload = { "type": "stakingOverview" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({type: 'stakingOverview'})
};
fetch('https://api.hypedexer.com/info#stakingOverview', 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://api.hypedexer.com/info#stakingOverview",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'type' => 'stakingOverview'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.hypedexer.com/info#stakingOverview"
payload := strings.NewReader("{\n \"type\": \"stakingOverview\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.hypedexer.com/info#stakingOverview")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"type\": \"stakingOverview\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.hypedexer.com/info#stakingOverview")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"type\": \"stakingOverview\"\n}"
response = http.request(request)
puts response.read_body[
{
"validator": "0xa82f...62ad",
"name": "Hyper Foundation 2",
"stake": "5436612850910599.0",
"commission": "0.03",
"predictedApr": "0.021680772600000002",
"uptimeFraction": "1.0",
"isActive": true,
"isJailed": false,
"nRecentBlocks": 12,
"time": 1793449450000
}
]{
"error": "Invalid API key"
}Authorizations
Your Hypedexer API key, sent as Authorization: Bearer <key>. The X-API-Key: <key> header and the api_key query parameter are accepted as well.
Body
application/json
Available options:
stakingOverview