Global UTXO index statistics
curl --request GET \
--url https://utxo-indexer.api.umbraprivacy.com/v1/statsimport requests
url = "https://utxo-indexer.api.umbraprivacy.com/v1/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://utxo-indexer.api.umbraprivacy.com/v1/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://utxo-indexer.api.umbraprivacy.com/v1/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://utxo-indexer.api.umbraprivacy.com/v1/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://utxo-indexer.api.umbraprivacy.com/v1/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://utxo-indexer.api.umbraprivacy.com/v1/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"total_utxos": 150000,
"latest_absolute_index": 149999
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}Indexer API
Stats
Aggregate statistics for the entire Stealth Pool Note index across all Merkle trees.
Global UTXO index statistics
curl --request GET \
--url https://utxo-indexer.api.umbraprivacy.com/v1/statsimport requests
url = "https://utxo-indexer.api.umbraprivacy.com/v1/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://utxo-indexer.api.umbraprivacy.com/v1/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://utxo-indexer.api.umbraprivacy.com/v1/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$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://utxo-indexer.api.umbraprivacy.com/v1/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://utxo-indexer.api.umbraprivacy.com/v1/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://utxo-indexer.api.umbraprivacy.com/v1/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"total_utxos": 150000,
"latest_absolute_index": 149999
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}Use this endpoint to get a quick snapshot before deciding which tree and index range to scan.
Response encoding is always
application/x-protobuf — content negotiation is not supported for this endpoint.Response
Statistics retrieved successfully.
Protobuf StatsResponse message returned by GET /v1/stats.
Aggregate statistics for the UTXO index. The latest_absolute_index field
is absent in the Protobuf encoding when the store is empty (optional field).
Total number of UTXO records indexed across all Merkle trees.
Example:
150000
The highest absolute insertion index seen by the indexer, or absent when
the store is empty. Computed as
tree_index * MAX_LEAVES_PER_TREE + insertion_index
where MAX_LEAVES_PER_TREE = 1,048,576.
Example:
149999