Lithos Client API

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

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

11 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

7 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

53 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.

Difficulty Forwards

13 endpoints

Difficulty forwards: peer-to-peer bets on Ergo's mean difficulty over a window of 1 to 120 epochs of 128 blocks, margined in LIT. A maker posts an offer, a taker fills it, and once the window is recorded anyone settles it. The long side is paid when the window's mean is above the strike, the short side when it is below, up to each side's margin of a fifth of the notional.

Reads and every check are open; your positions and everything that signs need an api_key. All amounts and difficulties are decimal strings, not JSON numbers. LIT amounts are base units (9 decimals). A 409 means a box you named is already being spent: re-read and resend.

SigmaFi Bonds

16 endpoints

SigmaFi bonds: peer-to-peer zero-coupon loans. A borrower posts a collateral-backed order. A lender fills it, creating a bond and minting two bond-asset units: one singleton locked in the bond and one circulating claim for the lender. Repayment and liquidation burn the singleton. The borrower repays before maturity and takes the collateral back; otherwise anyone may liquidate the bond, sending the borrower's collateral to the vault. The lender chooses and funds a separate batching reserve on fill, above all borrower collateral; repayment refunds it to the bond holder, while liquidation may pay it to the liquidator. Whoever holds the bond asset claims what the vault holds for it.

Lists, the asset lookup and every check are open and sign nothing; the portfolio and everything that signs need an api_key. All amounts are decimal strings, not JSON numbers. A 409 means a box you named is already being spent: re-read and resend.

Oracle Feeds

2 endpoints

Confirmed oracle feeds read from this client's Ergo node and extra index. The shipped mainnet feed erg-usd is USD v2. Other v2 pools can be configured under oracles.feeds. Prices and raw integers are decimal strings. No wallet or API key is required.

Wallet

6 endpoints

The client's own wallet: ERG and token balances, block rewards, the arb stake, and the list of verified tokens those balances are matched against. Balances, rewards and the arb stake require an api_key; the verified list does not.

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