REST is our primary API for interacting with the node from scripts, libraries, and system-to-system integration.Here you can find the latest OpenAPI documentation along with usage examples.Interactive Swagger UI is also available on HTTP port of all running nodes.If you are considering to build applications on top of Kamu Node - also consider using GraphQL API.For accessing individual components of the datasets (blocks, references, data slices) you can use ODF protocol.
A client that gets a proof in response should perform a few basic steps to validate the proof integrity. For example making sure that the DID in proof.verificationMethod actually corresponds to the node you’re querying data from and that the signature in proof.proofValue is actually valid. Only after this you can use this proof to hold the node accountable for the result.A proof can be stored long-term and then disputed at a later point using your own node or a 3rd party node you can trust via the /verify endpoint.Example request:
{ "ok": false, "error": { "kind": "VerificationFailed::OutputMismatch", "actual_hash": "f162..c12a", "expected_hash": "f162..2a2d", "message": "Query was reproduced but resulted in output hash different from expected. This means that the output was either falsified, or the query reproducibility was not guaranteed by the system.", }}