API, MCP, SDK
Everything below is public, needs no key, and is served from this site.
JSON API
| Endpoint | Returns |
|---|---|
GET /api/feeds | Default feeds: values, raw bytes, HyperEVM, HyperCore and Elysium blocks, mode (live or preview) |
GET /api/read?key=oraclePx&args=0 | One live read; also id=0x807 |
GET /api/precompiles | The twenty reads with inputs, outputs and addresses |
GET /api/quote?items=4 | Cost of one canonical update in HYPE at live base fees |
GET /api/wishlist | Proposals |
GET /api/status | Blocks and gas on both chains |
curl -s https://<this-site>/api/read?key=oraclePx\&args=0MCP endpoint
POST /api/mcp speaks JSON-RPC (MCP streamable HTTP, stateless). Tools: list_precompiles, read_precompile, get_feeds, quote_update, generate_interface.
curl -s -X POST https://<this-site>/api/mcp -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"read_precompile","arguments":{"key":"bbo","args":["0"]}}}'SDK
One ES module with no dependencies at /sdk/protos.js. It encodes inputs, calls HyperEVM or an Elysium soft precompile with eth_call, decodes outputs and checks freshness.
curl -sO https://<this-site>/sdk/protos.js
import { Protos } from "./protos.js";
const p = new Protos(); // HyperEVM source by default
const px = await p.read("oraclePx", [0]); // { value: 589769n, block: ... }
const bbo = await p.read("bbo", [0]);skill.md
Agents can load /skill.md: what Protos is, the endpoints, the MCP tools and the encodings, in one file. /llms.txt lists the pages.