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.
http://localhost:9000Auth api_key header, where markedv1.0.0Info
1 endpointsSynchronization status and capability availability for the Lithos client
Blocks
6 endpointsUsable, canonically committed blocks currently being processed by Lithos contracts
Payments
1 endpointsConfirmed Lithos payouts to this client's primary miner address
Statistics
10 endpointsMining, 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.
- getStatistics overview
/stats→ - getMining and payment totals
/stats/mining/totals→ - getMining statistics by hour or day
/stats/mining/buckets→ - getEstimate Lithos hashrate
/stats/mining/hashrate→ - getNetwork difficulty by epoch
/stats/mining/difficulty→ - getThis client's own hashrate
/stats/mining/workers→ - getThis client's hashrate over time
/stats/mining/workers/history→ - getThis client's payouts and claims
/stats/mining/payments→ - getCollateral inventory
/stats/collateral→ - getLocal mining activity
/stats/localkey→
Collateral Market
8 endpointsStats 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).
- getCollateral market snapshot
/collateral/market→ - getList queue boxes
/collateral/queue→ - getList the active set
/collateral/active→ - getPermit price history
/collateral/permits/history→ - getYour locked block rewards
/collateral/rewardskey→ - postClaim unlocked block rewards
/collateral/rewards/claimkey→ - postQuote joining the queue
/collateral/join/checkkey→ - postJoin the collateral queue
/collateral/joinkey→
Lithos Dex
27 endpointsSwap, 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.
- getLithosDex pool state
/dex/pool→ - getLithosDex fee vault state
/dex/vault→ - getList your outstanding orders
/dex/orderskey→ - postQuote a swap order
/dex/orders/swap/check→ - postPlace a swap order
/dex/orders/swapkey→ - postQuote a deposit order
/dex/orders/deposit/check→ - postPlace a deposit order
/dex/orders/depositkey→ - postQuote a redeem order
/dex/orders/redeem/check→ - postPlace a redeem order
/dex/orders/redeemkey→ - postCancel an order
/dex/orders/{boxId}/cancelkey→ - postQuote a swap
/dex/swap/check→ - postQuote a swap by desired output
/dex/swap/checkOutput→ - postExecute a swap
/dex/swapkey→ - postQuote a liquidity deposit
/dex/deposit/check→ - postDeposit liquidity
/dex/depositkey→ - postQuote a liquidity redemption
/dex/redeem/check→ - postRedeem liquidity
/dex/redeemkey→ - getList liquidity provisions
/dex/provisions→ - postClaim settled fees for a provision
/dex/provisions/{boxId}/claimkey→ - postQuote a provision resize
/dex/provisions/{boxId}/resize/check→ - postResize a provision
/dex/provisions/{boxId}/resizekey→ - postCheck a pending fee flush
/dex/flush/check→ - postFlush pending fees to the vault
/dex/flushkey→ - getPool-wide fee history
/dex/fees/history→ - getPool price history
/dex/price/history→ - getRecent pool activity
/dex/activity/recent→ - getFee history for one provision
/dex/provisions/{boxId}/fees/history→
Wallet
1 endpointsBalances 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 endpointsInformation about the local stratum and mining process