Skip to content
Solear
DocsAPI reference

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

MethodPathReturns
GET/v0/config/publicNetwork, features and limits
GET/v0/tokens/search?q=Tokens by name, ticker or address
GET/v0/tokens/:chain/:idToken details and safety report
GET/v0/tokens/:chain/:id/marketCandles and recent trades
GET/v0/launchesRecent NEAR-home launches
GET/v0/pump-launchesRecent Solana-home launches
POST/v0/quoteA priced route for a trade
POST/v0/ordersAn order from a quote, plus its first signing action
GET/v0/orders/:idOrder progress and the next action (needs the order token)
GET/v0/portfolioBalances 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.