SDK
The SDK is one ES module served at /sdk/charybdis.js. It has no dependencies and runs in browsers, Node 20+ and Deno.
import { impact, plan } from "https://<site>/sdk/charybdis.js";
// what one market order of $250k would pay right now
const one = await impact({ coin: "HYPE", side: "long", usd: 250_000 });
// { mid, avg, bps, levels }
// how a ticket would be sliced
const p = plan({ usd: 250_000, accounts: 24, durationSec: 1800 });
// { slices, perAccount, minOrderUsd: 10 }Functions
impact({ coin, side, usd }): walks the live HyperCore book and returns the one-order average price and impact in bps.plan({ usd, accounts, durationSec }): returns the slice plan the executor targets.deriveAccounts(signatureHex, k): the same derivation as the app (needsviemin scope for the address step).