Indexer info
Indexer info and state
Retrieves the current status, sync progress, and current SMT root of PIVX Name Resolution Indexer node.
Endpoint
GET https://indexer.pivx.name/v1.0/info
This endpoint does not require any path parameters or a request body.
Code Examples
- cURL
- JavaScript
- Python
- PHP
curl -X GET https://indexer.pivx.name/v1.0/info
const url = 'https://indexer.pivx.name/v1.0/info';
fetch(url, {
method: 'GET'
})
.then(response => response.json())
.then(result => console.log(result))
.catch(error => console.error('Error:', error));
import requests
url = "https://indexer.pivx.name/v1.0/info"
response = requests.get(url)
print(response.json())
<?php
$url = 'https://indexer.pivx.name/v1.0/info';
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json'
]);
$response = curl_exec($ch);
curl_close($ch);
$result = json_decode($response, true);
print_r($result);
Response Example
{
"response": {
"last_processed_evm_block": 273373172,
"last_processed_pivx_block": 5439410,
"last_checkpoint": {
"block_id": 5439410,
"smt_root": "51e3e006bd0d34d40c34cc91dff2fd6bd55152b6c1d8a3d59ab7e7673164974c",
"evm_block_id": 273373117,
"evm_tx_hash": "0x430638a4486911000ea29d41b6a63820ad3a62602fe74dad1b2627fc641ae6da"
},
"domains_count": 5,
"registrar_viewing_key": "pxviews1qd44j2dsquqqpq9f25fq69yvh9r26qhlaqd4mg66uwu7um5rkytjp85rwvs9tyru9lcjmr6dpjkmqz7dfp45k22lhqcwkm66d7347j6gsgdwvtjgu0x7sxw2xtqddfy3n3l7gs5xuu53p09csxjv4dekxxzydqjxvvqd5gvcf0zz39auvgpwsphglkmtlj3sjn96tacz8wesx3gc6e0p7tzmfmqyv7590vxqnewanc7l7aj2ytysljrmxz3e0sc0kn2espdardpdudg4ysf5g"
}
}
| Field | Type | Description |
|---|---|---|
last_processed_evm_block | int | Last processed EVM block (scan for new checkpoints) |
last_processed_pivx_block | int | Latest processed block on chain (usually last checkpoint's block_id) |
domains_count | int | Total names registered |
registrar_address | string | Address of the Registrar to process incoming TXes and escrow |
registrar_viewing_key | string | Viewing key of the Registrar Shielded Address to get an access to Protocol history |
last_checkpoint | Latest checkpoint information (latest SMT Root update) | |
smt_root | string | Latest Merkle tree root (hex) |
block_id | int | PIVX block_id of the last checkpoint and SMT Root generation |
evm_block_id | int | EVM block_id where last Proof is checked with SP1 smart contract |
evm_tx_hash | int | EVM tx_id where last Proof was checked with SP1 smart contract |
warning
If last_processed_pivx_block is significantly behind last_checkpoint.block_id, recent registrations may not be reflected yet.