Core Index docs
SDK, API and MCP
The same numbers three ways: a contract call, a REST endpoint and MCP tools for agents.
eth_call
import { createPublicClient, http } from "viem";
const client = createPublicClient({ transport: http("https://rpc.elysium.kinetiq.xyz") });
const [usdc6, hyperBlock, fresh] = await client.readContract({
address: INDEX_BOOK, abi: indexBookAbi, functionName: "navPerToken" });REST
GET https://thecoreindex.xyz/api/v1/baskets
GET https://thecoreindex.xyz/api/v1/baskets/top10
-> { id, name, hyperBlock, constituents: [{ token, spotIndex, mark, bid, ask, weight }], move24h }The endpoint runs the rule on live HyperCore reads at request time, cached for a few seconds.
MCP
POST https://thecoreindex.xyz/api/mcp (JSON-RPC 2.0, MCP tools)
tools: basket_nav { basket } -> weights, marks, HyperEVM block
quote_mint { basket, usdc } -> units per constituent at current marks