Lithos Client API

Every Lithos client serves a local HTTP API and web interface. These 59 endpoints cover sync state, rollups, payouts, the stratum, statistics, the collateral market and LithosDex.

Base URL http://localhost:9000Auth api_key header, where markedv1.0.0

Info

1 endpoints

Synchronization status and capability availability for the Lithos client

Blocks

6 endpoints

Usable, canonically committed blocks currently being processed by Lithos contracts

Payments

1 endpoints

Confirmed Lithos payouts to this client's primary miner address

Statistics

10 endpoints

Mining, payment, collateral and client activity numbers for dashboards and graphs. Collection runs in the background, so a request never makes the client scan the node. Only /stats/local needs an api_key; the rest are open reads. Nothing here is cached.

Every response carries a status. Only ready means the numbers have caught up to the chain tip — show anything else as loading or stale.

All amounts and work totals are exact decimal strings, not JSON numbers. ERG amounts are nanoERG (1 ERG = 1,000,000,000); LIT amounts are base units (9 decimals); timestamps are Unix milliseconds. History is kept for a configured number of days, not forever.

Collateral Market

8 endpoints

Stats and participation for the collateral market: the queue, the active set, emission state, and joining the queue.

All amounts are decimal strings, not JSON numbers. ERG amounts are nanoERG; LIT amounts are base units (9 decimals).

Lithos Dex

27 endpoints

Swap, provide liquidity and collect fees on the LithosDex pool.

Swaps, deposits and redemptions can be placed as orders under /dex/orders, which any miner fills for the order's executor fee, or sent directly, spending the pool at once. Prefer orders: a miner filling orders may replace an unconfirmed direct spend of the pool, which then has to be resent.

All amounts are decimal strings, not JSON numbers. A 409 means a box you quoted against has moved: re-read, re-quote and resend.

Wallet

1 endpoints

Balances and lending status for the client's own wallet. Requires an api_key.

All amounts are decimal strings, not JSON numbers. ERG amounts are nanoERG; LIT amounts are base units (9 decimals).

Mining

5 endpoints

Information about the local stratum and mining process