End-to-End Anchoring Workflow

End‑to‑End Anchoring Workflow

  1. Generate hash

    shasum -a 512 yourfile.jpg  # outputs 128‑char hex

  1. 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.

  1. Poll status

curl -H "x-api-key: $API_KEY" \
     https://api.openorigins.com/v1/media/<anchor_id>

When status = 3, anchoring is final.

  1. 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