Practice account loaded: swap kHYPE/HYPE at Kinetiq's live rate1.0288…

SDK, Quote as and MCP

Quote as

The site's quote endpoint calls the deployed hook. It returns the fee in pips, whether the swap takes the gap and the gap itself.

GET /api/quote?price=1.0290&ref=1.02784&z=1
{ "fee": 928, "gapPips": 1128, "takesGap": true, "source": "PegHook.quoteAt", ... }

GET /api/live
{ "rate": 1.02886, "hyperevmBlock": 52372794, "marketPrice": 1.02818, "hookArb": {...}, "hookHolder": {...} }

viem

import { createPublicClient, http, parseAbi } from "viem";
const ely = createPublicClient({ transport: http("https://rpc.elysium.kinetiq.xyz") });
const hook = "0xEb7316be9bf3733d34Ec50ee0a8867a0B021a0C8";
const abi = parseAbi([
  "struct Quote { uint24 fee; uint24 protocolFee; uint256 poolPriceWad; uint256 refWad; uint256 gapPips; bool fresh; bool takesGap; }",
  "function quoteAt(bytes32,uint160,uint256,bool) view returns (Quote)",
]);
const q = await ely.readContract({ address: hook, abi, functionName: "quoteAt",
  args: ["0x58c220a4220b7a1b9d9861c5a737cb5ae28f66b5207052e0d0863caff7c71216", sqrtPriceX96, refWad, true] });

MCP

A keyless Model Context Protocol server exposes quote_as, rate, pools and swap_calldata over the same reads, for agents that route kHYPE and HYPE on Elysium. It ships with the first liquidity.

Routing

Pegisium pools are standard v4 pools, so the Universal Router (0x1B341FDD55d56F8E08409A2C25DDFad93Eb03C1a) and any aggregator that reads v4 can route them. The pool key is kHYPE, WHYPE, the dynamic-fee flag, tick spacing 1 and PegHook.

The flagship pool is openkHYPE/WHYPE on Elysium, priced by PegHook.