Docs menu: SDK, API, MCP
SDK, API, MCP
REST
| Endpoint | Returns |
|---|---|
| GET /api/v1/state | Kinetiq's rate, the staking rate, kHYPE on Elysium, today's drand round, contract status |
| GET /api/v1/draws | every settled draw: day, round, randomness, winner, prize, transaction |
| GET /api/v1/odds?deposit=&pool=&boost= | daily odds, one-in-N days, expected pot |
GET /api/v1/odds?deposit=1000&pool=250000
{
"deposit": 1000,
"pool": 250000,
"boost": 1,
"dailyOdds": 0.00398,
"oneInDays": 251,
"expectedPotHype": 15.0
}SDK in a few lines
There is nothing to install: the draw arithmetic is small enough to copy. This reproduces any day's winner from public data.
import { keccak256, hexToBigInt } from "viem";
const round = (d) => Math.ceil(((d + 1) * 86400 + 60 - 1727521075) / 3) + 1;
const sig = (await (await fetch(`https://api.drand.sh/v2/beacons/evmnet/rounds/${round(day)}`)).json()).signature;
const target = hexToBigInt(keccak256(`0x${sig}`)) % totalWeight; // totalWeight from PrizeVault.totalWeight(day)
const winner = await vault.read.saverAt([day, target]);MCP
POST /api/mcp speaks JSON-RPC with tools/list and tools/call. Two tools: odds (deposit, pool, boost) and deposit_quote (amount, asset).
curl -s https://nolosshype.xyz/api/mcp -H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"odds","arguments":{"deposit":1000,"pool":250000}}}'