API reference / DocAnchor API
DocAnchor API
Coming soon: anchoring on XDC (Apothem testnet first) and receipts after 5 confirmations. Submit a SHA-256 hash; hashes are designed to be batched hourly into one Merkle root. Verification is free and open now.
| Base path | https://feedplumb.jp/notary |
|---|---|
| Authentication | None today (keys and plan limits planned) |
| Limits | 30 requests/min per IP. Submissions are not open yet (503). |
| Health | /notary/health · status page |
GET /notary/health
Store, anchoring state and counters.
curl -s https://feedplumb.jp/notary/healthGET /notary/health on this site
POST /notary/v1/hash
Submit {"hash":"<64 hex>"} or a raw file body (hashed while streaming, bytes discarded). 202 new, 200 known.
curl -s -X POST https://feedplumb.jp/notary/v1/hash -H 'content-type: application/json' \
-d "{\"hash\":\"(sha256sum invoice.pdf | cut -d' ' -f1)\"}"GET /notary/v1/receipt/{hash}
Receipt v2 (OpenZeppelin StandardMerkleTree proof, root, tx, block). 202 while confirming.
GET /notary/v1/bundle/{hash}
Self-contained portable proof bundle JSON (docanchor-proof-bundle-v1) for offline or on-chain verification.
GET /notary/v1/verify/{hash}
pending / unknown / anchored, plus a live on-chain check.
curl -s https://feedplumb.jp/notary/v1/verify/<sha256>POST /notary/v1/verify-bundle
Verify a portable proof bundle JSON against its Merkle root and (when configured) the anchor contract.