Layer 6 · The dig RPC — the machine interface
Canonical reference: hub
services/retrieval/src/bin/bootstrap.rs(the canonicalrpc.dig.netserver);dig-node/src/lib.rs(the node profile). The §21 REST routes are its transport sibling.
The dig RPC is the single, agent-consumable network surface of the protocol — the only way content is read. JSON-RPC 2.0 over HTTPS POST to a single endpoint. There is no CDN.
- Network profile:
openrpc.json - Node profile:
openrpc-node.json - Cross-surface error catalog:
error-codes.json
Both OpenRPC documents are generated from one source of truth and are intended to be CI-diffed against live server responses, so an agent can drive the protocol without scraping prose. The verified browser client dig-client-wasm is pinned by an SRI digest.
1 · Transport envelope
POST https://rpc.dig.net
Content-Type: application/json
{ "jsonrpc": "2.0", "id": <id>, "method": "<name>", "params": { … } }
- A single request object OR a non-empty batch array (each element dispatched independently, re-collected into a response array) —
bootstrap.rs:515-525. paramsis always by-name;idis echoed.- Any well-formed JSON body → HTTP 200; success/error rides in the JSON-RPC envelope.
- CORS
*, no credentials (content is public ciphertext);OPTIONS→ 204 (bootstrap.rs:468).
rpc.dig.net and this network profile ARE the anonymous, browser-reachable public read tier of the dual-transport model: no client certificate, CORS-*, read-only, decoy-on-miss, and integrity self-verified client-side against the chain-anchored root. The peer / write / config / control surface (peer exchange, DHT, PEX, availability-for-sync, PUSH/WRITE, node control) lives on the separate mTLS peer/control tier and is never reachable here — see the tier map.