API / For Developers
This page describes the public integration surfaces Specter relies on and the internal contracts that future developers should preserve.
Hyperliquid
Specter uses Hyperliquid public market data and signed exchange actions. Developers should use official Hyperliquid documentation for:
- market metadata,
- asset IDs,
- price and size precision,
- order action formats,
- agent wallet approval,
- clearinghouse state,
- WebSocket subscriptions.
Signed actions must be constructed exactly. A malformed action should fail closed.
Elysium and Uniswap
Specter spot execution targets official Uniswap deployments on Elysium chain 99901. Developers should verify contract addresses against official Uniswap deployment documentation before changing routes.
Spot execution must keep these rules:
- verify chain ID,
- verify contract code,
- quote before execution,
- simulate before broadcast,
- exact-amount approvals by default,
- block untrusted routes or hooks.
ElyScreener
Specter uses ElyScreener token feed data for discovery. Feed fields can change, so code should tolerate missing fields and never treat feed data as execution proof.
TradeLine backend contract
TradeLine is designed around a POST /actions contract with actions for login, profiles, posts, likes, reposts, comments, follows, friends, blocks, DMs, clans, and clan chat.
Wallet login uses a nonce challenge and signature recovery. Private keys never go to the server. Session tokens should be stored hashed server-side.
Developer safety rules
- Never log private keys, seed phrases, raw signing material, or session tokens.
- Never auto-retry a failed broadcast.
- Show a confirmation summary before signing.
- Keep demo data labeled as demo.
- Do not claim live proof until a real transaction or order is verified.