인덱서 정보
인덱서 정보 및 상태
PIVX Name 해상도 인덱서 노드의 현재 상태, 동기화 진행률 및 현재 SMT 루트를 검색합니다.
엔드포인트
GET https://indexer.pivx.name/v1.0/info
이 엔드포인트에는 경로 매개변수나 요청 본문이 필요하지 않습니다.
코드 예
- 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": {
"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"
}
}
| 필드 | 유형 | 설명 |
|---|---|---|
last_processed_evm_block | 정수 | 마지막으로 처리된 EVM 블록(새 체크포인트 검색) |
last_processed_pivx_block | 정수 | 체인에서 가장 최근에 처리된 블록(보통 마지막 체크포인트의 block_id) |
domains_count | 정수 | 등록된 전체 이름 |
registrar_address | 문자열 | 수신 TX 및 에스크로를 처리하기 위한 등록기관의 주소 |
registrar_viewing_key | 문자열 | 프로토콜 기록에 액세스하기 위해 레지스트라 Shielded 주소의 키 보기 |
last_checkpoint | 최신 체크포인트 정보(최신 SMT Root 업데이트) | |
smt_root | 문자열 | 최신 머클 트리 루트(16진수) |
block_id | 정수 | PIVX 마지막 체크포인트 및 SMT 루트 생성의 block_id |
evm_block_id | 정수 | SP1 스마트 계약으로 마지막 증명을 확인하는 EVM 블록 ID |
evm_tx_hash | 정수 | SP1 스마트 계약으로 마지막 증명을 확인한 EVM tx_id |
경고
last_processed_pivx_block이 last_checkpoint.block_id보다 현저히 뒤처진 경우 최근 등록이 아직 반영되지 않았을 수 있습니다.