Statistics
Get network statistics
Retrieve current network statistics for Starknet, including transaction counts, performance metrics, and financial data.
GET
/
stats
Get network statistics
curl --request GET \
--url https://public-api.voyager.online/beta/stats \
--header 'x-api-key: <api-key>'import requests
url = "https://public-api.voyager.online/beta/stats"
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/stats', 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/stats",
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/stats"
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/stats")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.voyager.online/beta/stats")
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{
"blocksCount": "2390025",
"contractsCount": "6373421",
"classesCount": "68530",
"transactionsCount": "230540045",
"tpsAtBlockHash": "0x7faee6e4612f883a8af435f06ca625c69a5e3ba34500a46543fa6b5ed424a89",
"tps": "8",
"maxRecordedTps": "992",
"latestAvgFee": [
{
"avgFee": "0.001868883883626956",
"unit": "USD"
},
{
"avgFee": "0.000000446609922962",
"unit": "ETH"
}
],
"activeAccounts": "53183",
"accountsGrowth": "5846",
"totalTvl": {
"value": "566494214",
"unit": "USD"
}
}{
"message": "Forbidden"
}{
"message": "Limit Exceeded"
}Authorizations
API key for authentication. Get your key at https://voyager.online/plans
Response
Network statistics
Show child attributes
Show child attributes
Show child attributes
Show child attributes
⌘I
Get network statistics
curl --request GET \
--url https://public-api.voyager.online/beta/stats \
--header 'x-api-key: <api-key>'import requests
url = "https://public-api.voyager.online/beta/stats"
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/stats', 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/stats",
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/stats"
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/stats")
.header("x-api-key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://public-api.voyager.online/beta/stats")
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{
"blocksCount": "2390025",
"contractsCount": "6373421",
"classesCount": "68530",
"transactionsCount": "230540045",
"tpsAtBlockHash": "0x7faee6e4612f883a8af435f06ca625c69a5e3ba34500a46543fa6b5ed424a89",
"tps": "8",
"maxRecordedTps": "992",
"latestAvgFee": [
{
"avgFee": "0.001868883883626956",
"unit": "USD"
},
{
"avgFee": "0.000000446609922962",
"unit": "ETH"
}
],
"activeAccounts": "53183",
"accountsGrowth": "5846",
"totalTvl": {
"value": "566494214",
"unit": "USD"
}
}{
"message": "Forbidden"
}{
"message": "Limit Exceeded"
}