Verify the hash chain
curl --request GET \
--url https://api.centsless.org/api/v1/admin/verify-hash-chain \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.centsless.org/api/v1/admin/verify-hash-chain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/admin/verify-hash-chain"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"chain_integrity": {
"total_transactions": 123,
"verified": 123,
"broken": 123,
"integrity_percentage": "<string>",
"breaks": [
{
"transaction_id": "<string>",
"position": 123,
"expected_hash": "<string>",
"actual_hash": "<string>"
}
],
"source": "database"
}
}Audit
Verify the hash chain
GET
/
admin
/
verify-hash-chain
Verify the hash chain
curl --request GET \
--url https://api.centsless.org/api/v1/admin/verify-hash-chain \
--header 'x-api-key: <api-key>'const options = {method: 'GET', headers: {'x-api-key': '<api-key>'}};
fetch('https://api.centsless.org/api/v1/admin/verify-hash-chain', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.centsless.org/api/v1/admin/verify-hash-chain"
headers = {"x-api-key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text){
"success": true,
"chain_integrity": {
"total_transactions": 123,
"verified": 123,
"broken": 123,
"integrity_percentage": "<string>",
"breaks": [
{
"transaction_id": "<string>",
"position": 123,
"expected_hash": "<string>",
"actual_hash": "<string>"
}
],
"source": "database"
}
}
