Public

Verify the ledger

Recompute the whole chain on the server.

GET/v1/ledger/verify

Public. The server walks every entry from genesis. For each one it checks the height, the link to the previous hash, the entry hash, and recomputes payload_hash from the fill it points to.

Response

okboolean

true if every entry checks out.

heightnumber

Height of the latest entry when ok is true; the failing height when it is false.

headstring

Hash of the last entry that checked out.

broken_atnumber

Only when ok is false: the first height that failed.

Broken chain
{
  "ok": false,
  "height": 17,
  "head": "367756852b4a8067a03f11fbe6c9b9b068d1291bea2528d555774709d9459be6",
  "broken_at": 17
}
Do not just trust ok. Save head and height over time: if a later response shows a different hash at a height you already saw, history was rewritten.
Request
curl https://dapp.filobook.run/v1/ledger/verify
Response · 200
{
  "ok": true,
  "height": 42,
  "head": "87bff5e441541bb1ba366339b638a5c4945d973a7deede8cfa6c936925c499b3"
}
Was this page helpful?