Developers
API reference
The public HTTP API behind this site.
Basics
The API is JSON over HTTPS, versioned under /v0. Amounts are integer strings in base units. Errors share one shape: { error: { code, message } }.
Public endpoints
| Method | Path | Returns |
|---|---|---|
| GET | /v0/config/public | Network, features and limits |
| GET | /v0/tokens/search?q= | Tokens by name, ticker or address |
| GET | /v0/tokens/:chain/:id | Token details and safety report |
| GET | /v0/tokens/:chain/:id/market | Candles and recent trades |
| GET | /v0/launches | Recent NEAR-home launches |
| GET | /v0/pump-launches | Recent Solana-home launches |
| POST | /v0/quote | A priced route for a trade |
| POST | /v0/orders | An order from a quote, plus its first signing action |
| GET | /v0/orders/:id | Order progress and the next action (needs the order token) |
| GET | /v0/portfolio | Balances on both chains, including bridged copies |
Creating an order returns a one-time order token. Send it as X-Solear-Order-Token on that order’s calls; without it the order is private, even to someone who knows its id.