curl --request GET \
--url https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}import requests
url = "https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}', 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/trees/{tree_index}",
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/trees/{tree_index}"
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/trees/{tree_index}")
.asString();require 'uri'
require 'net/http'
url = URI("https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}")
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{
"tree_index": 0,
"num_leaves": 1024,
"root": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"utxo_count": 1024
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}Tree Metadata
Returns metadata for a specific Indexed Merkle Tree: leaf count, current root hash, and Stealth Pool Note record count.
curl --request GET \
--url https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}import requests
url = "https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}', 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/trees/{tree_index}",
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/trees/{tree_index}"
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/trees/{tree_index}")
.asString();require 'uri'
require 'net/http'
url = URI("https://utxo-indexer.api.umbraprivacy.com/v1/trees/{tree_index}")
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{
"tree_index": 0,
"num_leaves": 1024,
"root": "AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=",
"utxo_count": 1024
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}{
"error": "Not Found",
"message": "Tree 99 not found"
}utxo_count may differ from num_leaves if some leaves were inserted without Stealth Pool Note ciphertext data (e.g. padding leaves).Path Parameters
Zero-based index of the Merkle tree to query.
x >= 0Response
Tree metadata retrieved successfully.
Protobuf TreeInfoResponse message returned by GET /v1/trees/{tree_index}.
The root field is a bytes field in the Protobuf encoding containing the
raw 32-byte little-endian Poseidon root hash.
Tree capacity: Each tree holds at most MAX_LEAVES_PER_TREE = 1,048,576
leaves (depth-20 Indexed Merkle Tree).
Zero-based index identifying the Merkle tree.
0
Total number of leaf commitments currently inserted into the tree.
1024
Raw 32-byte little-endian Poseidon root hash (Protobuf bytes field).
In a JSON representation this would be base64-encoded.
"AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA="
Number of UTXO records stored for this tree in the UTXO store.
1024