ElyraElyraOpen the app

Docs

API

Reads

EndpointReturns
GET /api/statuschain head, contracts, auction service and feed status
GET /api/quote?sell=USDC&buy=HYPE&amount=100the reference solver's v4 route and output, with the HyperCore mid
GET /api/conditions?coins=HYPE,BTCHyperCore values as feed keys, and ElyraFeed's on-chain values once deployed
GET /api/poolsthe v4 pools the reference solver routes through, read live
POST /api/rpcElysium JSON-RPC (read methods and eth_sendRawTransaction)

Order book

EndpointDoes
POST /api/orders{order, signature, scheme, proof?, root?} returns {uid}
GET /api/orders?owner=0x..&status=openorders with status and fills
GET /api/orders/:uidone order
DELETE /api/orders/:uid{signature} of Cancel(orderHash): off-chain cancel
GET /api/auctionthe batch open now
GET /api/auctions?limit=20recent batches, scores, winners and transactions

Solvers

EndpointDoes
POST /api/solutionssubmit a solution with its Commit signature
GET /api/solversboard: bonds, wins, fills, surplus, strikes (bond and surplusHype in wei, as decimal strings)

Amounts are integers in base units, as decimal strings. All endpoints are keyless and send CORS headers.