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.
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
11 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→ - getThis wallet's lending earnings
/stats/collateral/earningskey→ - getLocal mining activity
/stats/localkey→
Collateral Market
7 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 lending status
/collateral/walletkey→ - postQuote joining the queue
/collateral/join/checkkey→ - postJoin the collateral queue
/collateral/joinkey→
Lithos Dex
53 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→ - getEvery LithosDex pool
/dex/pools→ - getOne LithosDex pool and its vault
/dex/pools/{poolNft}→ - getList your outstanding orders on any pool
/dex/pools/{poolNft}/orderskey→ - postQuote a direct swap on any pool
/dex/pools/{poolNft}/swap/check→ - postSwap directly on any pool
/dex/pools/{poolNft}/swapkey→ - postQuote a direct deposit on any pool
/dex/pools/{poolNft}/deposit/check→ - postDeposit directly on any pool
/dex/pools/{poolNft}/depositkey→ - postQuote a direct redemption on any pool
/dex/pools/{poolNft}/redeem/check→ - postRedeem a provision directly on any pool
/dex/pools/{poolNft}/redeemkey→ - getList your provisions on any pool
/dex/pools/{poolNft}/provisionskey→ - postClaim a provision's fees on any pool
/dex/pools/{poolNft}/provisions/{boxId}/claimkey→ - postCheck a flush on any pool
/dex/pools/{poolNft}/flush/check→ - postFlush any pool
/dex/pools/{poolNft}/flushkey→ - getA verified pool's price history
/dex/pools/{poolNft}/price/history→ - getA verified pool's fee history
/dex/pools/{poolNft}/fees/history→ - getA verified pool's recent activity
/dex/pools/{poolNft}/activity/recent→ - getA provision's fee history on a verified pool
/dex/pools/{poolNft}/provisions/{boxId}/fees/history→ - postQuote a new LithosDex pool
/dex/pools/create/check→ - postCreate a LithosDex pool
/dex/pools/createkey→ - postQuote a swap order on any pool
/dex/pools/{poolNft}/orders/swap/check→ - postPlace a swap order on any pool
/dex/pools/{poolNft}/orders/swapkey→ - postQuote a deposit order on any pool
/dex/pools/{poolNft}/orders/deposit/check→ - postPlace a deposit order on any pool
/dex/pools/{poolNft}/orders/depositkey→ - postQuote a redeem order on any pool
/dex/pools/{poolNft}/orders/redeem/check→ - postPlace a redeem order on any pool
/dex/pools/{poolNft}/orders/redeemkey→ - 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→ - postLook up provision NFTs
/dex/provisions/nft→ - 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→
Difficulty Forwards
13 endpointsDifficulty 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.
- getDifficulty accumulator and the next epoch's difficulty
/forwards/accumulator→ - getList open offers
/forwards/offers→ - postCreate an offer
/forwards/offerskey→ - postQuote an offer
/forwards/offers/check→ - postQuote filling an offer
/forwards/offers/{boxId}/fill/check→ - postFill an offer
/forwards/offers/{boxId}/fillkey→ - postQuote cancelling an offer
/forwards/offers/{boxId}/cancel/check→ - postCancel an offer
/forwards/offers/{boxId}/cancelkey→ - getThe whole market
/forwards/market→ - getYour settled positions and closed offers
/forwards/historykey→ - getList your positions and offers
/forwards/positionskey→ - postQuote settling a position
/forwards/positions/{boxId}/settle/check→ - postSettle a position
/forwards/positions/{boxId}/settlekey→
SigmaFi Bonds
16 endpointsSigmaFi 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.
- getList open orders
/sigmafi/orders→ - postCreate an order
/sigmafi/orderskey→ - postQuote an order
/sigmafi/orders/check→ - postQuote cancelling an order
/sigmafi/orders/{boxId}/cancel/check→ - postCancel an order
/sigmafi/orders/{boxId}/cancelkey→ - postQuote filling an order
/sigmafi/orders/{boxId}/fill/check→ - postFill an order
/sigmafi/orders/{boxId}/fillkey→ - getList live bonds
/sigmafi/bonds→ - postQuote repaying a bond
/sigmafi/bonds/{boxId}/repay/check→ - postRepay a bond
/sigmafi/bonds/{boxId}/repaykey→ - postQuote liquidating a bond
/sigmafi/bonds/{boxId}/liquidate/check→ - postLiquidate a bond
/sigmafi/bonds/{boxId}/liquidatekey→ - postQuote a claim
/sigmafi/claims/{tokenId}/check→ - postClaim a settled bond
/sigmafi/claims/{tokenId}key→ - postLook up bond assets
/sigmafi/assets→ - getThis wallet in SigmaFi
/sigmafi/portfoliokey→
Oracle Feeds
2 endpointsConfirmed 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 endpointsThe 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 endpointsInformation about the local stratum and mining process