EquiraOpen app
developers

Build on Equira.

One open JSON API covers balances, payments, markets, launches and perps. Anyone can read it, and any EVM wallet or agent key can write to it.

Read the chain

Public routes need no key. Requests and responses are JSON. Amounts travel as strings of base units, 9 decimals for HYPE (nano HYPE) and 6 for coins, and prices are decimal strings.

GET /api/chain
Chain id, head block and hash, producer, settlement and door contracts, receipt count and the live rules open
GET /api/blocks
Latest block headers with tx root and state root, newest first, paged with before and limit open
GET /api/blocks/:id
One block by height or hash, with each transaction's hash, type and status open
GET /api/tx/:hash
The public view of a transaction: hash, type, status, block, index and time open
GET /api/checkpoints
Every receipt posted to Elysium, with its checkpoint hash and Elysium transaction open
GET /api/checkpoints/:index
One receipt open
GET /api/search?q=
Resolve a block height, block hash, tx hash, coin id or checkpoint hash open
GET /api/coins
Every coin with price, market cap, curve progress and opening state, sorted new, top or active open
GET /api/coins/:id
One coin open
GET /api/coins/:id/candles
Candles built from clears, 1m to 1d open
GET /api/coins/:id/clears
One clearing price per block: price, totals, buyers and sellers open
GET /api/coins/:id/quote
Estimate a buy or sell as if you were alone in the batch open
GET /api/perps/markets
Perps markets with mark price, open interest and max leverage open
GET /api/perps/vault
Vault size, shares, reserved HYPE, volume and fees open
GET /api/perps/candles
Hyperliquid candles for a perps market open
GET /api/price
HYPE in USD from Hyperliquid, as the chain sees it open
GET /api/nonce/:account
The next nonce for an account open
GET /api/events?since=
Blocks, clears, coin updates and receipts since a height (poll it, or use the SDK's stream()) open
POST /api/tx
Submit a signed transaction: { tx, sig, linkSecret? } open

AI agents

The repository includes an MCP server. Point Claude, ChatGPT or any other MCP client at it and the agent can read blocks, receipts, coins, clears and perps markets, and send transactions signed by its own key. One config block:

{
  "mcpServers": {
    "equira": {
      "command": "node",
      "args": ["/path/to/equira/mcp/cli.js"],
      "env": { "EQUIRA_API": "https://<equira host>", "EQUIRA_AGENT_KEY": "<agent private key, 0x hex>" }
    }
  }
}

Give the agent a fresh key with only what it needs. Its transactions are ordinary Equira transactions from its own account, and it can be paid or funded like any other.

Private data

Routes under /api/me answer only the account they belong to. Prove it with three headers that carry a signed timestamp. A live session key may sign them, so a wallet signs once per session instead of every few minutes.

x-equira-account: <the account, a lowercase 0x address>
x-equira-ts:      <unix seconds, within 5 minutes of the server clock>
x-equira-sig:     <personal_sign of "EQUIRA auth v1\n" + account + "\n" + ts, as 0x hex,
                   by the account itself or by one of its active session keys>

The SDK does this for you: client.me(account, signer) returns a reader with balances(), history(), links() and the rest.

Send a transaction

A transaction has five fields, chainId, from, nonce, type and body, serialized with sorted keys and no whitespace; its hash is the SHA-256 of those bytes. Everyone signs the same text: "EQUIRA tx v1", a newline, then the canonical JSON, with personal_sign. The chain recovers the signer and accepts it if it is the account or one of the account's active session keys. The SDK exports EquiraClient, SessionKey, buildTx, signTx and evmKeySigner.

import { EquiraClient, SessionKey, buildTx, signTx } from "@equira/sdk";

const client = new EquiraClient({ baseUrl: "https://<equira host>" });
const { chainId } = await client.chain();

// Any EVM wallet (viem, wagmi, an injected wallet). Equira accounts are lowercase.
const from = walletClient.account.address.toLowerCase();
const wallet = { address: from, signMessage: (text) => walletClient.signMessage({ message: text }) };

// 1. One wallet signature opens a session: a browser key with a spend cap.
const session = await SessionKey.generate();
const grant = buildTx(chainId, from, await client.nonce(from), "session.grant", {
  sessionKey: session.address,
  expiresAt: Math.floor(Date.now() / 1000) + 3600,
  maxSpend: "5000000000", // 5 HYPE in nano HYPE
  allowedTypes: ["coin.buy", "coin.sell", "pay.transfer"],
});
await client.submit(await signTx(grant, wallet));

// 2. From here on the session key signs. No prompt.
const buy = buildTx(chainId, from, await client.nonce(from), "coin.buy", {
  coinId, hypeIn: "500000000", minTokensOut: "1", // 0.5 HYPE in
});
const { hash } = await client.submit(await signTx(buy, session));
const done = await client.wait(hash); // resolves once its batch has cleared

// 3. Private reads are signed by the session key too.
const me = client.me(from, session);
console.log(done.status, await me.balances());
// An agent or a script signs with its own EVM key and never needs a browser wallet.
import { EquiraClient, buildTx, signTx, evmKeySigner, parseHype } from "@equira/sdk";

const agent = await evmKeySigner(process.env.EQUIRA_AGENT_KEY); // 0x hex secp256k1 key
const client = new EquiraClient({ baseUrl: "https://<equira host>" });
const { chainId } = await client.chain();

const tx = buildTx(chainId, agent.address, await client.nonce(agent.address), "pay.transfer", {
  to: "0x…", amount: parseHype("0.1"), // "100000000" nano HYPE
});
await client.submit(await signTx(tx, agent));

// or in one call: build, sign and send
await client.send(agent, agent.address, "pay.transfer", { to: "0x…", amount: parseHype("0.1") });

Transaction types

typebody
pay.transfer{ to, amount }
pay.link.create{ amount, secretHash, memo?, expiresAt? }
pay.link.claim{ linkId, secret }
pay.link.cancel{ linkId }
coin.launch{ name, symbol, publicGraduation, uri?, description?, initialBuy? }
coin.buy{ coinId, hypeIn, minTokensOut }
coin.sell{ coinId, tokensIn, minHypeOut }
coin.graduate.claim{ coinId, to }
bridge.withdraw{ asset: "HYPE", amount, to }
session.grant{ sessionKey, expiresAt, maxSpend, allowedTypes }
session.revoke{ sessionKey }
perps.open{ market, side: "long" | "short", collateral, leverage }
perps.close{ positionId }
perps.lp.deposit{ amount }
perps.lp.withdraw{ shares }

Session keys may sign every type except bridge.withdraw, session.grant and session.revoke, which always need the wallet. Six types are written by the sequencer itself and carry no user signature: bridge.deposit, bridge.refund, bridge.paid, perps.price, coin.graduated and chain.quiet.

Statuses: ok, failed, sealed (an order waiting for its batch or opening), filled, refunded and queued (a withdrawal waiting for the door).

Private endpoints

GET /api/me/balances
HYPE, every coin you hold, your vault shares, points and next nonce signed
GET /api/me/history
Your own transactions with bodies, statuses and effects signed
GET /api/me/points
Your points signed
GET /api/me/links
Your pay links, with their secrets if you asked the chain to keep them signed
GET /api/me/withdrawals
Your withdrawals and their payout status on Elysium signed
GET /api/me/deposits
Deposits still confirming on Elysium, and deposits credited signed
GET /api/me/claims
Graduated coins ready to claim, and your claims signed
GET /api/me/sessions
Your session keys, their caps and expiry signed
GET /api/me/perps/positions
Your perps positions, open and closed signed
GET /api/me/perps/lp
Your vault shares and what they are worth signed
GET /api/links/:id
A pay link's amount and status, with the x-equira-link-secret header signed

Deposits

HYPE comes in through a call to depositFor(account) on the door contract on Elysium, from the app or any EVM wallet, and is credited once the deposit has its confirmations. Plain transfers to the contract are rejected, and amounts must be at least 0.001 HYPE and a whole number of gwei. After that, every action (a payment, a trade, a launch, a perps position or a withdrawal) is an Equira transaction your code can build and send itself.

Verify

The verifier in the repository walks every block, checks hashes, roots and the producer signature, rebuilds the checkpoint chain and compares it with the ReceiptPosted events of the settlement contract on Elysium.

node scripts/verify.mjs

Every block page in the explorer runs the header checks in your browser, and every receipt page recomputes its blocks root and checkpoint hash.

Limits

The API allows 300 requests a minute per IP address and 60 submitted transactions a minute. A block holds at most 500 transactions. Over the limit, the API answers 429; wait for the minute to roll over.