Builders

Build on Zerosium

Read the vault, park kHYPE in it from a contract, or give an agent the keyless tools. Every address, ABI and endpoint is on this page.

Quickstart

Three ways to read the vault in under a minute. None needs a key.

# 1. The read API (JSON, CORS open)
curl -s https://zerosium.com/api/v1/vault

# 2. Straight from the chain with Foundry's cast
cast call 0x944Ab4df49Aaa1127733C7dF6cbACe4915faCeb6 "totalAssets()(uint256)" --rpc-url https://rpc.elysium.kinetiq.xyz

# 3. The viem script below
curl -sO https://zerosium.com/snippets/read-vault.mjs && npm i viem && node read-vault.mjs

Deposits are closed until the desk's HyperCore short is funded, so maxDeposit returns 0 and depositsOpen() returns false today. Integrations written against the standard calls work unchanged once they open.

Contracts and ABIs

Elysium, chain id 99901, RPC https://rpc.elysium.kinetiq.xyz. Both contracts are verified on the Blockscout explorer.

ContractAddressABI
ZeroVault (ERC-4626, zHYPE)0x944Ab4df49Aaa1127733C7dF6cbACe4915faCeb6ZeroVault.json
DeltaGuard0x204B9A31865A493D129a40D82873F5358B6D39F3DeltaGuard.json
kHYPE (the vault asset)0x248888D396A546A69A188f3Deb476964e581E9d0ERC-20
Intent router the vault sends its orders through0x552f76aa792fb53f966afd50fae48D765B4A854F-

kHYPE has 18 decimals. zHYPE shares have 21, because the vault uses the ERC-4626 decimals offset of 3 against inflation attacks. deposit, mint, withdraw and redeem behave as the standard says. Extra views: shortE8(), deltaE8(), depositsOpen(), lastAccrualHour(), receivable(), rateE18().

ERC-4626 from Solidity

A contract that parks kHYPE in the vault and reads its value back. It checks maxDeposit first, so it returns 0 instead of reverting while deposits are closed. Download ParkInZerosium.sol.

// SPDX-License-Identifier: MIT
pragma solidity ^0.8.24;

interface IERC20 {
    function approve(address spender, uint256 amount) external returns (bool);
    function transferFrom(address from, address to, uint256 amount) external returns (bool);
}

interface IERC4626 {
    function asset() external view returns (address);
    function balanceOf(address owner) external view returns (uint256);
    function maxDeposit(address receiver) external view returns (uint256);
    function deposit(uint256 assets, address receiver) external returns (uint256 shares);
    function redeem(uint256 shares, address receiver, address owner) external returns (uint256 assets);
    function convertToAssets(uint256 shares) external view returns (uint256);
}

/// Parks kHYPE in ZeroVault on Elysium (chain 99901) and reads its value back.
contract ParkInZerosium {
    IERC4626 public constant VAULT = IERC4626(0x944Ab4df49Aaa1127733C7dF6cbACe4915faCeb6);
    IERC20 public constant KHYPE = IERC20(0x248888D396A546A69A188f3Deb476964e581E9d0);
    address public immutable owner = msg.sender;

    /// Deposits up to what the vault accepts right now. Returns 0 while deposits are closed.
    function park(uint256 amount) external returns (uint256 shares) {
        require(msg.sender == owner, "owner");
        uint256 room = VAULT.maxDeposit(address(this));
        if (room == 0) return 0;
        if (amount > room) amount = room;
        KHYPE.transferFrom(msg.sender, address(this), amount);
        KHYPE.approve(address(VAULT), amount);
        shares = VAULT.deposit(amount, address(this));
    }

    /// Redeems every share for kHYPE. Works with every keeper stopped.
    function unpark() external returns (uint256 assets) {
        require(msg.sender == owner, "owner");
        uint256 shares = VAULT.balanceOf(address(this));
        if (shares == 0) return 0;
        assets = VAULT.redeem(shares, owner, address(this));
    }

    /// What this contract's shares are worth in kHYPE (18 decimals).
    function value() external view returns (uint256) {
        return VAULT.convertToAssets(VAULT.balanceOf(address(this)));
    }
}

Try it on a fork of Elysium. The test below passes against the deployed vault today:

forge test --fork-url https://rpc.elysium.kinetiq.xyz

// test/Park.t.sol
function test_ParkAgainstLiveVault() public {
    ParkInZerosium p = new ParkInZerosium();
    assertEq(p.VAULT().asset(), address(p.KHYPE()));
    assertEq(p.park(1e18), 0); // 0 while deposits are closed
    assertEq(p.value(), 0);
}

Read with viem

Reads the vault state and simulates a deposit before any wallet would sign it. Download read-vault.mjs.

// npm i viem   then   node read-vault.mjs
import { createPublicClient, defineChain, formatUnits, http, parseAbi, parseUnits } from "viem";

const elysium = defineChain({
  id: 99901,
  name: "Elysium",
  nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 },
  rpcUrls: { default: { http: ["https://rpc.elysium.kinetiq.xyz"] } },
});
const client = createPublicClient({ chain: elysium, transport: http() });

const vault = {
  address: "0x944Ab4df49Aaa1127733C7dF6cbACe4915faCeb6",
  abi: parseAbi([
    "function asset() view returns (address)",
    "function decimals() view returns (uint8)",
    "function totalAssets() view returns (uint256)",
    "function totalSupply() view returns (uint256)",
    "function cap() view returns (uint256)",
    "function depositsOpen() view returns (bool)",
    "function shortE8() view returns (uint256)",
    "function convertToAssets(uint256 shares) view returns (uint256)",
    "function maxDeposit(address receiver) view returns (uint256)",
    "function deposit(uint256 assets, address receiver) returns (uint256)",
  ]),
};
const read = (functionName, args = []) => client.readContract({ ...vault, functionName, args });

// kHYPE has 18 decimals; zHYPE shares have 21 (the ERC-4626 decimals offset is 3).
const shareDecimals = await read("decimals");
const [asset, assets, supply, cap, open, shortE8, perShare] = await Promise.all([
  read("asset"), read("totalAssets"), read("totalSupply"), read("cap"),
  read("depositsOpen"), read("shortE8"), read("convertToAssets", [parseUnits("1", shareDecimals)]),
]);

console.log({
  asset,                                   // kHYPE
  totalAssets: formatUnits(assets, 18),    // kHYPE held for shareholders
  totalSupply: formatUnits(supply, shareDecimals), // zHYPE shares
  cap: formatUnits(cap, 18),
  depositsOpen: open,
  shortHype: Number(shortE8) / 1e8,        // the recorded HyperCore short
  sharePrice: formatUnits(perShare, 18),   // kHYPE per share
});

// Simulate a deposit before asking any wallet to sign it.
const me = "0x000000000000000000000000000000000000dEaD";
const room = await read("maxDeposit", [me]);
if (room === 0n) console.log("Deposits are closed: maxDeposit is 0, so a deposit would revert.");
else {
  const { result } = await client.simulateContract({ ...vault, functionName: "deposit", args: [parseUnits("1", 18), me], account: me });
  console.log("1 kHYPE would mint", formatUnits(result, shareDecimals), "shares");
}

Read API

Public JSON, no key, CORS open, cached at the edge for a few seconds. Base URL https://zerosium.com.

EndpointReturnsCache
GET /api/v1/vaultZeroVault read on chain: assets, shares, cap, recorded short, delta, share price, deposits open15 s
GET /api/v1/funding?hours=48The Funding Tape: HYPE mark, current funding, the last prints (up to 500)10 s
GET /api/v1/marketHyperCore HYPE perp context: mark, oracle, funding, premium, open interest10 s
const vault = await fetch("https://zerosium.com/api/v1/vault").then((r) => r.json());
console.log(vault.depositsOpen, vault.totalAssets, vault.delta);

MCP

A keyless MCP server at https://zerosium.com/api/mcp (streamable HTTP, JSON responses). Tools: funding_now, vault_state, sandbox_deposit (prices a matched short on the HyperCore book, moves nothing) and deposit_calldata (unsigned calldata for your own wallet).

Claude Code:

claude mcp add --transport http zerosium https://zerosium.com/api/mcp

Claude Desktop, Cursor and other clients that read an mcpServers file:

{
  "mcpServers": {
    "zerosium": { "type": "http", "url": "https://zerosium.com/api/mcp" }
  }
}

Or call it directly:

curl -s https://zerosium.com/api/mcp -H 'content-type: application/json' \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"vault_state","arguments":{}}}'

llms.txt

A plain-text summary of the protocol, the addresses and every endpoint for AI agents lives at /llms.txt.