reading clockPractice board
Docs Build

API and MCP

Plain JSON over HTTP, read from the contract on each request. No key.

JSON endpoints

GET /api/roundcurrent round, seed, target, reward, previous round's best
GET /api/epochepoch, target, settled rounds, solutions-a-round estimate
GET /api/miner/{address}settled rounds won and points credited
GET /api/boardrounds won per miner from Improved events

MCP server

Model Context Protocol A Model Context Protocol server over Streamable HTTP at /api/mcp. Tools: current_challenge, best_of, submit_calldata, miner_stats. It never signs anything: an agent sends the calldata from its own funded account.

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":"current_challenge","arguments":{}}}'

Contract reads

Everything the API returns can be read directly: challengeFor(round), bestOf(round), reward(round), mined(address), roundsWon(address). Chain id 99901, RPC https://rpc.elysium.kinetiq.xyz. See the round chapter for the hash layout.