Skip to main content

Checkpoints

Retrieves a list of cryptographic sync checkpoints generated by the Prover node, allowing clients to verify data integrity against specific block heights.

Endpoint

POST https://indexer.pivx.name/v1.0/checkpoints

Request Body

The request body must be a JSON object containing the following parameters:

ParameterTypeDefaultDescription
countinteger100Limit the maximum number of checkpoints returned in a single response.
from_blockintegerNoneRequest the checkpoint data starting from this specific block height.
orderstringdescThe sorting order of the checkpoints. Accepted values: asc or desc.

Code Examples

curl -X POST https://indexer.pivx.name/v1.0/checkpoints \
-H "Content-Type: application/json" \
-d '{
"count": 2,
"from_block": 5361212,
"order": "asc"
}'

Response Example

{
"response": [
{
"block_id": 5432535,
"smt_root": "b4c9dacf8e194e353dce7638d76f282fe40399f7b0ad74a2229a6d4f5be774de",
"evm_block_id": 272705819,
"evm_tx_hash": "0x7af621b112cc009e65ac66cd9f589f24908efad28bd3451297050824bbb46af4"
},
{
"block_id": 5434368,
"smt_root": "98cbb0d3cecb4b18105f6406bf473c9b92c11b670ee7071d47fd155dc1e9cfda",
"evm_block_id": 272706827,
"evm_tx_hash": "0x491c52ce65e2a6a32956a5aec01ac0b903641b1ee6e79e0bb49d88739b50159e"
}
]
}
FieldTypeDescription
block_idintThe last PIVX block_id included in the checkpoint
smt_rootstringCheckpoint's SMT Root
evm_block_idstringEVM block_id of the checkpoint creation
evm_tx_hashstringEVM tx_hash of the checkpoint creation