End-to-End Anchoring Workflow
End‑to‑End Anchoring Workflow
Generate hash
shasum -a 512 yourfile.jpg # outputs 128‑char hex
Create anchor
curl -X POST https://api.openorigins.com/v1/media/anchor \
-H "x-api-key: $API_KEY" \
-H "Content-Type: application/json" \
-d '{"hash":"<HASH>","size":12345}'Response returns anchor_id.
Poll status
curl -H "x-api-key: $API_KEY" \
https://api.openorigins.com/v1/media/<anchor_id>When status = 3, anchoring is final.
Store proofs (optional)
GET /v1/media/<anchor_id>/proofs returns the Merkle path and on‑chain TX.
Persist it with your asset for offline verification.
Last updated