MCP tools
Endgame sealed-batch exchange 1.0.0 · 7 toolsmarkets 2 inputs · read-onlyMarkets and live prices. Lists Endgame's sealed-batch markets for Robinhood Chain stock tokens (chain 4663): each market's number, symbol, token address, price source (Chainlink feed or Uniswap v3 TWAP), the live reference price, the feed age, whether a batch closing now would settle or void (and why), the current batch and its commit and reveal deadlines, and the minimum order. Before the contract is deployed it lists the planned markets with live prices. Free.
batch_status 3 inputs · read-onlyOne batch: phase, orders, result. Shows one batch of one market: its phase (commit, reveal, settle, late, settled, void), deadlines (unix seconds), commit count, every revealed order (public after reveal), the clearing price and volumes once settled, or why it voided. When it is ready to settle it includes the exact feed rounds, the price it will clear at, a fill preview and an unsigned settle transaction anyone can send. Defaults to the current batch. Free.
build_commit_tx 6 inputs · read-onlyBuild: commit a sealed order. Builds the UNSIGNED transactions to commit a hidden order to the batch taking orders now: an exact approve for the $ENDGAME order burn if needed, then commit(market, batch, hash). Returns the hash and a ticket (every field needed to reveal; keep it private until the reveal window), the reveal window, what the reveal will lock, and fundingTxs if the Endgame balance is short. Pass your own 32-byte salt for best privacy, or the server generates one and does not store it. Amounts are in whole tokens; limit is in USDG per token (a buy pays at most it, a sell takes at least it). Free.
build_reveal_tx 9 inputs · read-onlyBuild: reveal a committed order. Builds the UNSIGNED reveal transaction from a ticket returned by build_commit_tx (market, batch, trader, side, amountRaw, limitRaw, salt). Checks the commit exists onchain, the reveal window, and that the trader has enough free balance for the lock. Anyone may send a reveal, so an agent can reveal for its user. Free.
my_orders 2 inputs · read-onlyOrders and balances for an address. Lists an address's Endgame commits, newest first: sealed (with its reveal window), revealed and waiting, filled (price and size), not filled, or void, with unsigned cancel and reclaim transactions where they apply, plus free and locked balances per asset with a withdraw-all transaction. Free.
build_tx 9 inputs · read-onlyBuild: deposit, withdraw, settle, reclaim or cancel. Builds UNSIGNED transactions for the other Endgame actions: deposit (exact approve + deposit, checked against the caps), withdraw (an amount or "all"; never paused), settle (anyone, with the pinned feed rounds), reclaim (void or late batches; funds go to the order's trader) and cancel (an unrevealed commit). Simulated when `from` is given. Free.
status 0 inputs · read-onlyExchange status and caps. Endgame's contract status: deployed or not, paused for new orders or not, the order burn, total $ENDGAME burned, markets, and per-asset deposit caps with what the contract holds. Free.