# Lithos

> Lithos is a decentralized mining pool protocol on Ergo. Miners build their own blocks, prove their work with a few kilobytes, and smart contracts pay them. No operator, no custody.

- Lithos is live on Ergo mainnet. There is no pool operator and no central server: contracts on Ergo hold and pay the rewards.
- Miners run their own Ergo node and Lithos client, build their own block candidates and choose their own transactions.
- Miners prove their work with NISPs (non-interactive share proofs) of 10 super shares, at most 29,629 bytes each, submitted on-chain.
- Each Lithos block opens a rollup: 360 blocks of holding, where NISPs are collected, then 360 blocks of evaluation, where anyone can submit fraud proofs, then payout. Payouts take about a day and have no minimum.
- Every surviving miner in a rollup is paid total reward × their score ÷ total score, in ERG and LIT. A miner's score is the difficulty they committed to on-chain.
- Lenders lock 2.915 ERG and a LIT permit as collateral; when a miner spends it in a Lithos block, the lender receives the block's 3 ERG coinbase plus fees. The gap caps the protocol's cost at 3% of the subsidy.
- LIT has a fixed supply of 1,000,000,000, with 9 decimals. 825,000,000 LIT leave the emission contract only as collateral activates.
- LithosDex is an on-chain AMM built into the client, with ERG pools for LIT and other tokens. Difficulty forwards let miners hedge their income against Ergo's difficulty.
- Mining needs Java 11, a synced Ergo node (6.0.7 or later, extraIndex on), the Lithos client and any Autolykos 2 miner. Lithos Launcher installs all but the miner. Hashrate rented on NiceHash also works.
- The Lithos client, its contracts and Lithos Launcher are released under CC0.

Every page under https://lithosprotocol.org/docs is also served as Markdown: add `.md` to its URL (for example https://lithosprotocol.org/docs/intro.md), or request it with `Accept: text/markdown`. https://lithosprotocol.org/llms-full.txt has all of the docs in one file.

## Protocol

- [Lithos Protocol](https://lithosprotocol.org/docs/intro.md)
- [LFSM](https://lithosprotocol.org/docs/tutorial-basics/lfsm.md)
- [Rollups](https://lithosprotocol.org/docs/tutorial-basics/rollups.md)
- [NISPs](https://lithosprotocol.org/docs/tutorial-basics/NISPs.md)
- [Emissions](https://lithosprotocol.org/docs/tutorial-basics/emissions.md)
- [Mining on Lithos](https://lithosprotocol.org/docs/tutorial-basics/mining-on-lithos.md)
- [Candidate building](https://lithosprotocol.org/docs/tutorial-basics/candidate-building.md)
- [Ergo Voting](https://lithosprotocol.org/docs/tutorial-basics/voting.md)
- [LithosDex](https://lithosprotocol.org/docs/lithosdex/overview.md)
- [Choosing a pool](https://lithosprotocol.org/docs/lithosdex/pools.md)
- [Trading with orders](https://lithosprotocol.org/docs/lithosdex/orders.md)
- [Providing liquidity](https://lithosprotocol.org/docs/lithosdex/liquidity.md)
- [Creating a pool](https://lithosprotocol.org/docs/lithosdex/creating-a-pool.md)
- [Difficulty forwards](https://lithosprotocol.org/docs/extensions/difficulty-forwards.md)
- [SigmaFi bonds](https://lithosprotocol.org/docs/extensions/sigmafi-bonds.md)

## Run Lithos

- [Startup guide](https://lithosprotocol.org/docs/startup-intro.md)
- [Setting up an Ergo node](https://lithosprotocol.org/docs/startup/ergo-node.md)
- [Configuration](https://lithosprotocol.org/docs/configuration/overview.md)
- [Node connection and security](https://lithosprotocol.org/docs/configuration/node.md)
- [Stratum and difficulty](https://lithosprotocol.org/docs/configuration/stratum.md)
- [Block packages](https://lithosprotocol.org/docs/configuration/candidate.md)
- [Batching and orders](https://lithosprotocol.org/docs/configuration/batching.md)
- [Collateral and emission](https://lithosprotocol.org/docs/configuration/emission.md)
- [Wallet and consolidation](https://lithosprotocol.org/docs/configuration/wallet.md)
- [Statistics and web panels](https://lithosprotocol.org/docs/configuration/stats.md)
- [Synchronization and storage](https://lithosprotocol.org/docs/configuration/sync.md)
- [Tasks and dispatchers](https://lithosprotocol.org/docs/configuration/runtime.md)
- [Failure modes](https://lithosprotocol.org/docs/operations/failure-modes.md)
- [Reporting issues](https://lithosprotocol.org/docs/operations/reporting-issues.md)
- [Renting hashrate into Lithos](https://lithosprotocol.org/docs/operations/renting-hashrate.md)
- [Checking your wallet](https://lithosprotocol.org/docs/operations/wallet-page.md)

## Client API

- [Client API reference](https://lithosprotocol.org/docs/api.md): the local HTTP API every Lithos client serves, endpoint by endpoint

## Live network data

- [Network stats](https://lithosprotocol.org/stats): Lithos hashrate, blocks, collateral, payouts, LithosDex and difficulty forwards
- [Stats API](https://lithosprotocol.org/api/v1/stats): the same snapshot as JSON, from the site's own index of the chain
- [Hashrate history](https://lithosprotocol.org/api/v1/history?interval=day): Lithos hashrate and blocks per day, 30 days
- [Recent blocks](https://lithosprotocol.org/api/v1/blocks): recent Lithos blocks and what their rollups paid
- [LIT supply](https://lithosprotocol.org/api/v1/supply/lit): supply, price and emission

## Optional

- [Full docs in one file](https://lithosprotocol.org/llms-full.txt)
- [Source code](https://github.com/Lithos-Protocol): Lithos client, contracts and Launcher
- [Launcher releases](https://github.com/Lithos-Protocol/Lithos-Launcher/releases)
- [Telegram](https://t.me/LITHOS_Protocol)
- [X](https://x.com/LithosProtocol)
