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.zcashnames.co/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.zcashnames.co/v1.0/checkpoints \
-H "Content-Type: application/json" \
-d '{
"count": 2,
"from_block": 1,
"order": "asc"
}'

Response Example

{
"response": [
{
"block_id": 3422048,
"smt_root": "b4c9dacf8e194e353dce7638d76f282fe40399f7b0ad74a2229a6d4f5be774de",
"evm_block_id": 290453948,
"evm_tx_hash": "0xcfc86b34ad55450b73511d9ce5b5d33e5e0e2366ceb7ae7e81bdcce62f57de38"
},
{
"block_id": 3422335,
"smt_root": "eba675788f0fbf1df8a3c32e83da3e71dfd9337cca5a7c8ae2f51e963d03be17",
"evm_block_id": 290504572,
"evm_tx_hash": "0x9f943993b6e6430fe3da448c52b122342c0a629e7eca520d1d22df063c22002b"
}
]
}
FieldTypeDescription
block_idintThe last ZCash 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