# Lithos docs

> How the Lithos protocol works, how to run a Lithos client and mine, LithosDex, difficulty forwards, and the client's API.

Source: https://lithosprotocol.org/docs

## Protocol

- [Lithos Protocol](https://lithosprotocol.org/docs/intro.md): What Lithos is, how a Lithos payout works, and where to start.
- [LFSM](https://lithosprotocol.org/docs/tutorial-basics/lfsm.md)
  - [Rollups](https://lithosprotocol.org/docs/tutorial-basics/rollups.md): How a rollup is opened by the genesis transaction, collects NISPs, survives fraud proofs, and pays its miners.
  - [NISPs](https://lithosprotocol.org/docs/tutorial-basics/NISPs.md): What a Non-Interactive Share Proof is, how Lithos builds one, and why the difficulty you commit to is the only number that matters.
  - [Emissions](https://lithosprotocol.org/docs/tutorial-basics/emissions.md): How LIT enters circulation, how the activation-based emission schedule works, and where each activation's LIT goes.
- Mining
  - [Mining on Lithos](https://lithosprotocol.org/docs/tutorial-basics/mining-on-lithos.md): How Lithos measures your work, and how the difficulty you choose trades payout size against how often you are paid.
  - [Candidate building](https://lithosprotocol.org/docs/tutorial-basics/candidate-building.md): How the Lithos client builds each block you mine, where the revenue from its extra transactions goes, and what happens when part of it fails.
  - [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): The two kinds of LithosDex pool, what the verified list means, and what the client checks and asks before you trade on any other pool.
  - [Trading with orders](https://lithosprotocol.org/docs/lithosdex/orders.md): Placing a LithosDex order, what it locks and pays, following it until it fills, and cancelling it.
  - [Providing liquidity](https://lithosprotocol.org/docs/lithosdex/liquidity.md): Depositing into a LithosDex pool, the two ways a position earns, checking a provision NFT, and closing a position without losing fees.
  - [Creating a pool](https://lithosprotocol.org/docs/lithosdex/creating-a-pool.md): Creating an ERG/token or token/token LithosDex pool, what it costs, what is locked for good, and what you get back.
- Extensions
  - [Difficulty forwards](https://lithosprotocol.org/docs/extensions/difficulty-forwards.md): How a difficulty forward is offered, filled, recorded and settled, what it pays, and how to trade one from the web panel.
  - [SigmaFi bonds](https://lithosprotocol.org/docs/extensions/sigmafi-bonds.md): How a SigmaFi zero-coupon bond is offered, filled, repaid, liquidated and claimed, and how to borrow or lend from the web panel.

## Run Lithos

- [Startup guide](https://lithosprotocol.org/docs/startup-intro.md)
  - [Setting up an Ergo node](https://lithosprotocol.org/docs/startup/ergo-node.md): Install, configure and run the Ergo node that the Lithos client depends on.
- [Configuration](https://lithosprotocol.org/docs/configuration/overview.md)
  - [Node connection and security](https://lithosprotocol.org/docs/configuration/node.md): Connecting the client to your Ergo node, and the two secrets that guard its own API.
  - [Stratum and difficulty](https://lithosprotocol.org/docs/configuration/stratum.md): The stratum server your mining software connects to, and the difficulty that decides your payout.
  - [Block packages](https://lithosprotocol.org/docs/configuration/candidate.md): How the client assembles the blocks it mines, and what each transaction source may contribute.
  - [Batching and orders](https://lithosprotocol.org/docs/configuration/batching.md): Filling other people's DEX orders for their executor fee, arbitrage in your own blocks, and the fees your own orders carry.
  - [Collateral and emission](https://lithosprotocol.org/docs/configuration/emission.md): Driving the collateral queue, and putting your own ERG and LIT into it.
  - [Wallet and consolidation](https://lithosprotocol.org/docs/configuration/wallet.md): How the client selects and bounds its own UTXOs, and when it merges them.
  - [Statistics and web panels](https://lithosprotocol.org/docs/configuration/stats.md): What feeds the Mining, Collateral and LithosDex web panels, and how much history the client keeps for them.
  - [Synchronization and storage](https://lithosprotocol.org/docs/configuration/sync.md): Following the chain, persisting rollup state, and recovering from forks and faults.
  - [Tasks and dispatchers](https://lithosprotocol.org/docs/configuration/runtime.md): Committing your difficulty, background tasks, thread pools, and the switch that disables protocol work.
- Operations
  - [Failure modes](https://lithosprotocol.org/docs/operations/failure-modes.md): Diagnose selected startup, wallet, consolidation, mining, and reward-claim log messages.
  - [Reporting issues](https://lithosprotocol.org/docs/operations/reporting-issues.md): What to include in a problem report so it can be diagnosed without a second round of questions.
  - [Renting hashrate into Lithos](https://lithosprotocol.org/docs/operations/renting-hashrate.md): Rent Autolykos hashrate on NiceHash, point it at your Lithos client, and size, commit and run the rental at a profit.
  - [Checking your wallet](https://lithosprotocol.org/docs/operations/wallet-page.md): Reading your node wallet in the web panel's Wallet page, checking tokens and provision NFTs, claiming lending rewards, and reclaiming the arb stake.

## Client API

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