LithosDocs
ProtocolPayoutsTokenStatsDocs
Start mining
Documentation home
Protocol
  • Lithos Protocol
  • LFSM
    • Rollups
    • NISPs
    • Emissions
    • Mining on Lithos
    • Candidate building
    • Ergo Voting
  • LithosDex
    • Choosing a pool
    • Trading with orders
    • Providing liquidity
    • Creating a pool
    • Difficulty forwards
    • SigmaFi bonds
Run Lithos
  • Startup guide
    • Setting up an Ergo node
  • Configuration
    • Node connection and security
    • Stratum and difficulty
    • Block packages
    • Batching and orders
    • Collateral and emission
    • Wallet and consolidation
    • Statistics and web panels
    • Synchronization and storage
    • Tasks and dispatchers
    • Failure modes
    • Reporting issues
    • Renting hashrate into Lithos
    • Checking your wallet
Client API
  • Overview
    • getLithos client information
    • getList UTXO ids for blocks
    • getUTXO ids by block height
    • getBlock info by UTXO id
    • postBlock info for multiple UTXO ids
    • getGet a block's miner set
    • getList all pool blocks
    • getGet Lithos payouts
    • getStatistics overview
    • getMining and payment totals
    • getMining statistics by hour or day
    • getEstimate Lithos hashrate
    • getNetwork difficulty by epoch
    • getThis client's own hashrate
    • getThis client's hashrate over time
    • getThis client's payouts and claims
    • getCollateral inventory
    • getThis wallet's lending earnings
    • getLocal mining activity
    • getCollateral market snapshot
    • getList queue boxes
    • getList the active set
    • getPermit price history
    • getYour lending status
    • postQuote joining the queue
    • postJoin the collateral queue
    • getLithosDex pool state
    • getEvery LithosDex pool
    • getOne LithosDex pool and its vault
    • getList your outstanding orders on any pool
    • postQuote a direct swap on any pool
    • postSwap directly on any pool
    • postQuote a direct deposit on any pool
    • postDeposit directly on any pool
    • postQuote a direct redemption on any pool
    • postRedeem a provision directly on any pool
    • getList your provisions on any pool
    • postClaim a provision's fees on any pool
    • postCheck a flush on any pool
    • postFlush any pool
    • getA verified pool's price history
    • getA verified pool's fee history
    • getA verified pool's recent activity
    • getA provision's fee history on a verified pool
    • postQuote a new LithosDex pool
    • postCreate a LithosDex pool
    • postQuote a swap order on any pool
    • postPlace a swap order on any pool
    • postQuote a deposit order on any pool
    • postPlace a deposit order on any pool
    • postQuote a redeem order on any pool
    • postPlace a redeem order on any pool
    • getLithosDex fee vault state
    • getList your outstanding orders
    • postQuote a swap order
    • postPlace a swap order
    • postQuote a deposit order
    • postPlace a deposit order
    • postQuote a redeem order
    • postPlace a redeem order
    • postCancel an order
    • postQuote a swap
    • postQuote a swap by desired output
    • postExecute a swap
    • postQuote a liquidity deposit
    • postDeposit liquidity
    • postQuote a liquidity redemption
    • postRedeem liquidity
    • getList liquidity provisions
    • postLook up provision NFTs
    • postClaim settled fees for a provision
    • postQuote a provision resize
    • postResize a provision
    • postCheck a pending fee flush
    • postFlush pending fees to the vault
    • getPool-wide fee history
    • getPool price history
    • getRecent pool activity
    • getFee history for one provision
    • getDifficulty accumulator and the next epoch's difficulty
    • getList open offers
    • postCreate an offer
    • postQuote an offer
    • postQuote filling an offer
    • postFill an offer
    • postQuote cancelling an offer
    • postCancel an offer
    • getThe whole market
    • getYour settled positions and closed offers
    • getList your positions and offers
    • postQuote settling a position
    • postSettle a position
    • getList open orders
    • postCreate an order
    • postQuote an order
    • postQuote cancelling an order
    • postCancel an order
    • postQuote filling an order
    • postFill an order
    • getList live bonds
    • postQuote repaying a bond
    • postRepay a bond
    • postQuote liquidating a bond
    • postLiquidate a bond
    • postQuote a claim
    • postClaim a settled bond
    • postLook up bond assets
    • getThis wallet in SigmaFi
    • getList configured oracle feeds
    • getCurrent oracle state and recent confirmed history
    • getWallet balances
    • getYour block rewards
    • postClaim unlocked block rewards
    • getVerified tokens
    • getArb stake
    • postReclaim the arb stake
    • getGet Stratum information
    • getGet candidate settings
    • getGet difficulty commitment
    • postCommit a difficulty
    • getGet best NISP at height
Lithos

A decentralized mining pool protocol on Ergo. Miners build their own blocks; contracts pay them for proven work.

Live on Ergo mainnet
Protocol
  • How Lithos works
  • Mining on Lithos
  • NISPs
  • Emissions
  • LFSM contracts
Run Lithos
  • Startup guide
  • Configuration
  • LithosDex
  • Difficulty forwards
  • Client API
  • Failure modes
Network
  • Live stats
  • Public stats API
  • Ergo Platform↗
  • SOAT Miner↗
Community
  • Telegram↗
  • X / Twitter↗
  • GitHub↗
Lithos
© 2026 Lithos Protocol. The Lithos client, its contracts and Lithos Launcher are open source under CC0.λίθος — stone
Docs/Run Lithos

Startup guide

Install, configure and run the Lithos client, from nothing to mining.

Standard22 min readFor anyone setting up Lithos for the first time. No Ergo or smart contract experience needed.

This guide takes you from nothing to a Lithos client mining on Ergo mainnet. It covers the requirements, installing the Ergo node and the Lithos client, connecting your mining software, and making your first difficulty commitment.

It does not cover lending collateral or using LithosDex, which both live in the client's web interface. LithosDex has its own section. It also does not explain how the protocol works internally. For that, read Lithos Protocol.

Before you begin#

You need the following, whichever way you set up:

RequirementDetail
A computer64-bit Windows 10 or 11, or Linux on x64. Setting up yourself also works on macOS
MemoryAbout 8 GB of RAM for the node and the client together
Disk space60 GB free, almost all of it for the Ergo node, whose chain keeps growing
Mining softwareAny miner supporting Ergo's Autolykos 2 algorithm. The rig does not have to be on the same machine
ERGAt least 0.05 ERG in the node wallet, for your difficulty commitment, submission bonds and fees. See What submitting costs
GPU memorySee the warning below

Setting up yourself also needs Java 11 and an Ergo node of version 6.0.7 or later, or 6.1.7 or later on the 6.1 line. Lithos Launcher installs both for you.

Warning
Check your GPU memory before you start

Autolykos 2 builds a lookup table in VRAM that grows with the chain height. It is about 6.56 GiB on mainnet. When the height changes, the table is rebuilt while the old copy is still held, so the peak is roughly double.

Current NVIDIA drivers do not fail when a card runs out of VRAM. They spill the overflow to system memory over PCIe, and your rig keeps running at a fraction of its hashrate with nothing in the log to say why. If your hashrate is far below what the card should do, this is the first thing to check.

Choosing how to set up#

Lithos needs three programs on your computer: Java 11, an Ergo node and the Lithos client. You can install them in either of two ways:

AspectLithos Launcher (recommended)Setting up yourself
What it isA desktop app that installs, configures and runs all three for youYou install each program and write each configuration file by hand
Best forAnyone, including miners who have never run a nodeOperators who want full control, or run Lithos on a headless server
PlatformsWindows 10 or 11, and Linux on x64Anywhere Java 11 runs
SecretsStored encrypted by the operating system, never in a config fileIn lithos.conf or environment variables, which you manage
UpdatesOffers new node and client releases and switches versions for youYou download and unpack each release yourself

Use Lithos Launcher unless you have a reason not to. Follow Setting up with Lithos Launcher, then continue from Connecting your mining software. To install each program yourself, skip to Setting up yourself.

Setting up with Lithos Launcher#

Lithos Launcher↗ downloads Java, the Ergo node and the Lithos client, checks each download against its published SHA-256 checksum, and configures them for Lithos. Nothing is installed system-wide. Everything goes into a Lithos folder in your home directory.

Install the launcher#

Download the installer for your system from the Lithos Launcher releases↗:

Run Lithos-Launcher-Setup-VERSION.exe. The installer is not code-signed yet, so Windows SmartScreen may say Windows protected your PC. Choose More info, then Run anyway.

On Ubuntu, Debian and related distributions, install the .deb:

bash
sudo apt install ./Lithos-Launcher-VERSION.deb

On other distributions, use the .AppImage. Mark it executable with chmod +x before running it. It needs FUSE 2, which is the libfuse2t64 package on Ubuntu 24.04.

Run quick setup#

The first time you open the launcher, select Start quick setup and follow its steps:

  1. Choose Mainnet to mine for real ERG and LIT, or Testnet to practise with coins that have no value.
  2. Review the system check. It reports your memory, free disk space and whether the ports the node and client need are free.
  3. Enter your miner's hashrate, such as 150 MH/s. The launcher sets your starting difficulty from it, using the same formula as Choosing a difficulty. Select I don't know yet to choose it later.
  4. Select Install. The launcher downloads about 230 MB.
  5. Select Start node, then Create wallet. Write the seed phrase on paper and confirm the three words the launcher asks for. To use a wallet you already have, select Restore seed phrase or Use keystore file instead.
  6. Select Go to dashboard.

The node now syncs, which can take many hours the first time. The dashboard shows its progress. Leave the launcher running: it starts the Lithos client by itself once the node is synced and indexed, and it keeps the node wallet unlocked. Closing the window keeps mining in the background from the system tray.

Warning
Use a wallet made for mining

The Lithos client signs transactions with this wallet's keys. Do not restore your savings wallet into it. Keep the seed phrase on paper, because the launcher shows it only once and never stores it.

When the Lithos Client card shows the client running, continue from Connecting your mining software.

If you already run a node#

To keep a node you have already synced, select I already have a node on the quick setup screen, or Import an existing setup under Settings later. Point the launcher at your node folder, and optionally at your lithos-client folder. The launcher uses your chain and wallet where they are, so nothing re-syncs. It can also bring over your difficulty, auto-commit and port settings, and copy the client's .lithos data. Stop your old node and client before you import.

Where the launcher keeps things#

Everything lives in Lithos in your home folder, C:\Users\YOU\Lithos on Windows, unless you choose another folder under Settings:

PathContents
java/temurin-11-jre/The Java 11 runtime
mainnet/node/The Ergo node, its ergo.conf, and its chain and wallet in .ergo/
mainnet/client/The client's lithos.conf, its .lithos/ data, its logs, and each client release

A testnet setup uses testnet/ in the same way. The launcher writes a marked block at the top of ergo.conf and lithos.conf. Settings you add below that block are kept, and they override the launcher's. Settings opens either file, and warns you if one of your settings overrides something the launcher relies on. Every setting in Configuration can be added this way.

Setting up yourself#

This path installs each program by hand. Follow the four steps below in order, then continue from Connecting your mining software.

Step 1: Set up an Ergo node#

Lithos talks to a local Ergo node to read the chain, sign transactions with the node's wallet keystore, and receive block candidates. Follow Setting up an Ergo node, which covers installation, the ergo.conf file, creating a wallet, and verifying the node's API.

Before continuing, confirm three things:

  1. The node is fully synced. Check the height on the node panel at http://127.0.0.1:9053/panel.
  2. The node was started with extraIndex = true. Lithos reads boxes by address, token and script, and only an indexed node serves those queries.
  3. You have the node's API key and wallet password, and know the path to the wallet keystore file.

Use node version 6.0.7 or later, or 6.1.7 or later. Lithos sets a specific coinbase recipient on every block it builds, and the client's storage rent transactions follow the 6.0.7 security soft fork. Older nodes do not support both, so Lithos is not supported on them.

Step 2: Download and unpack the Lithos client#

Download the latest release .zip from the Lithos client releases↗, then unzip it. The archive expands into a lithos-client folder containing:

FolderContents
bin/The start scripts, and where your configuration file goes
conf/application.conf, the shipped defaults for every setting
lib/The client's JAR files

Do not edit conf/application.conf. You override the settings you care about in your own file, which keeps your configuration intact when you upgrade.

Step 3: Create your configuration file#

Create a file named lithos.conf inside lithos-client/bin. The client reads this file at startup and pulls in the shipped defaults through the include on the first line.

lithos-client/bin/lithos.conf
hocon
{
  include file("../conf/application.conf")
 
  node {
    url         = "http://127.0.0.1"
    key         = "NODE_API_KEY_HERE"
    storagePath = "path/to/nodefolder/.ergo/wallet/keystore/keyfile.json"
    pass        = "NODE_WALLET_PASS_HERE"
    networkType = "MAINNET"
    explorerURL = "default"
    numAddresses = 32
    mempoolSorting = "bySize"
  }
 
  # Change this to any long random string of your own
  play.http.secret.key = "changethissecret"
 
  # Blake2b256 hash of the API key that guards the client's authenticated endpoints.
  # This value is the hash of "hello". Change it. See "Security" below.
  lithos.apiKeyHash = "324dcf027dd4a30a932c441f365a25e86b173defa4b8e58948253471b81b72cf"
 
  stratum {
    diff = "140M"               # Format: (value)(powerOfTen), e.g. "4.0G", "1.52M", "300.1K"
    stratumPort = 4444
    reduceShareMessages = true  # Cuts share traffic between your mining software and Lithos
    reductionMultiplier = 10000 # How far it cuts: 10, 100, 1000 or 10000
    forceConfigDiff = false     # Leave false unless you are experimenting
  }
 
  state.autoCommit = false      # Leave off to commit from the web interface
}

Every setting in that file:

SettingWhat it does
node.urlYour node's address, including the scheme. Give a port to use it, or leave it off and Lithos appends the default: 9053 on mainnet, 9052 on testnet
node.keyThe node's REST API key, matching the apiKeyHash in your ergo.conf
node.storagePathFull path to the node wallet's keyfile.json. Lithos signs transactions with it
node.passThe node wallet password, used to unlock that keystore
node.networkTypeMAINNET or TESTNET. Decides the node port, address prefixes and contract set
node.explorerURLRequired by the Ergo SDK the client is built on. The client reads nothing from it, so leave it at default
node.numAddressesHow many wallet addresses Lithos derives keys for. Leave it at 32. Raising it later is safe; lowering it strands any ERG already paid to the addresses above the new limit
node.mempoolSortingMust match your node's ergo.node.mempoolSorting, either bySize or byExecutionCost. Lithos packs blocks against the rule your node actually applies
play.http.secret.keySigns the client's own web session cookies. Set it to any long random string
lithos.apiKeyHashBlake2b256 hash of the key required by the client's authenticated endpoints
stratum.diffThe difficulty the stratum serves until your difficulty commitment takes effect, and the one autoCommit commits. See Choosing a difficulty
stratum.stratumPortThe port your mining software connects to
stratum.reduceShareMessagesRaises the difficulty your mining software reports at, without changing the difficulty Lithos pays you at
stratum.reductionMultiplierHow many times your committed difficulty it raises it to: 10, 100, 1000 or 10000. At 10000 your mining software sends only super shares
stratum.forceConfigDiffForces Lithos to mine at diff instead of your on-chain commitment. For testing only
state.autoCommitRegisters you and commits diff on the blockchain, then keeps your difficulty commitment equal to diff. Ships off, so you commit from the web interface instead. See Committing your difficulty

Keeping secrets out of the file#

lithos.conf holds your node API key and wallet password in plain text. To read them from environment variables instead, add these lines at the end of the file:

lithos-client/bin/lithos.conf
hocon
  node.key = ${?NODE_KEY_ENV}
  node.pass = ${?NODE_PASS_ENV}
  play.http.secret.key = ${?PLAY_ENV}

Each line overrides the value above it when the named variable is set, and is ignored when it is not.

Step 4: Start the client#

Start your Ergo node first and wait for it to sync. Then run the start script from the bin folder:

powershell
cd lithos-client\bin
.\lithos-client.bat
bash
cd lithos-client/bin
./lithos-client

The client starts a stratum server on port 4444 and a web interface on port 9000. Open http://localhost:9000 in a browser to see sync status, your mined blocks, payments and collateral positions.

Danger
Keep the client's API off the open internet

The Lithos client holds your node API key and wallet password and can sign transactions with your keys. Do not forward port 9000, and do not expose it beyond your local network.

Connecting your mining software#

Lithos works with any Autolykos 2 miner. The wallet address and worker name you pass have no effect on Lithos, so any valid string works. Payouts are decided by your difficulty commitment, not by what your mining software reports.

In Lithos Launcher, select Connect a miner on the Lithos Client card. It shows the stratum address for rigs on this computer and for rigs elsewhere on your network, with a button to copy each. On Windows, choose Allow for private networks when Windows asks whether Java may use the network, or rigs on other computers cannot connect.

SOAT Miner↗ is open source, charges no dev fee, and supports Lithos directly. Use its --lithos option.

Rigel is closed source and charges a dev fee, but it is tested and known to work:

bash
rigel.exe -a autolykos2 -o stratum+tcp://127.0.0.1:4444 -u YOUR_ERG_WALLET -w my_rig --log-file logs/miner.log

127.0.0.1 reaches a client on the same machine as the rig. A rig on another machine uses the client machine's LAN address instead, such as stratum+tcp://192.168.1.20:4444. The stratum accepts rigs from every network by default; to limit it to this machine or to one network, set stratum.bindAddress.

Committing your difficulty#

You cannot be paid until your difficulty is committed on the blockchain. A difficulty commitment is a promise to mine at a given difficulty, made in advance, and it is what makes your payouts reflect your hashrate rather than your luck. Your first difficulty commitment also registers you as a Lithos miner.

Nothing is written on chain until you commit. Until then, the client mines normally but cannot submit NISPs, so you are not paid from rollups. Every tab of the Mining web interface shows a warning while no difficulty commitment is in force.

  1. On the Lithos Client card, select Choose or Change next to Difficulty. Enter your miner's hashrate, pick the option marked Start · recommended, and select Save difficulty, or Save and restart client while the client runs. See Choosing a difficulty for what the options mean.
  2. Select Commit… under Commitment.
  3. Check the block heights the dialog shows, and tick the box that confirms the lock.
  4. Select Commit, followed by your difficulty.

The dialog then shows the block to start mining at, the block where the commitment takes effect, and the block until which it is locked. Committing from the launcher needs Lithos client 1.0.2 or later.

  1. Choose your difficulty. See Choosing a difficulty.
  2. Open Mining, then Difficulty, then the Commitment tab.
  3. Enter your difficulty under New diff, written the way stratum.diff is, such as 140M.
  4. Check the block heights the panel shows, then tick the box that confirms the lock.
  5. Enter your API key if the panel asks for it, then select Register and commit. In Lithos Launcher, copy the key from API key on the Lithos Client card.

Registering costs 0.002 ERG from the node wallet: 0.001 ERG locked in your data box and a 0.001 ERG network fee. Each later change costs the 0.001 ERG fee. To commit without the web interface, send POST /mining/commitment with your difficulty and your API key. GET /mining/commitment reports what is in force. See Lithos API.

Three waits then stand between you and earning:

  1. Synchronizing. The client syncs from sync.startHeight in application.conf, which you can override in your own file with sync.startHeight = NEW_HEIGHT. The client must sync the miner registry before you can commit, and the Commitment tab refuses to commit until it finishes.
  2. Confirming. Your registration transaction confirms, and the client records your registration.
  3. The difficulty commitment taking effect. It binds 125 blocks after you send it, about 4 hours 10 minutes on mainnet. Work you do before then is not payable.

You can start your rigs about 65 blocks after you commit, roughly 2 hours on mainnet, rather than waiting the full 125. The first rollups judged against your commitment take super shares from the 60 blocks before them, so starting then gives you time to build up super shares.

The Commitment tab shows each stage. The warning disappears once your difficulty commitment is in force.

Letting the client commit for you#

state.autoCommit makes the client register you and keep your difficulty commitment equal to stratum.diff. It ships off. In Lithos Launcher, turn it on under Settings with Auto-commit: let the client commit your difficulty by itself. When setting up yourself, turn it on in lithos.conf:

lithos-client/bin/lithos.conf
hocon
  stratum.diff = "YOUR_DIFF"
  state.autoCommit = true

After a restart, the client checks your registration and difficulty commitment about a minute after startup and every minute after that. Auto-commit waiting on ... in the log names what the client is waiting for, and Difficulty commitment ... is on chain means it is done. While autoCommit is on, the Commitment tab and POST /mining/commitment refuse to commit, so the two never change your difficulty against each other.

Changing your difficulty later costs a day, not an hour#

To change your difficulty, save the new value with Change next to Difficulty in Lithos Launcher and select Commit… again, or enter it on the Commitment tab of the web interface. With autoCommit on, change diff and restart the client instead. A change can only be sent when the contracts allow it. Two rules decide when that is, both counted from when you send a difficulty commitment:

RuleBlocksOn mainnetOn testnet
Before the commitment takes effect125about 4 hours 10 minutesabout 1 hour 35 minutes
Before the commitment may be replaced845about 28 hoursabout 10 hours 30 minutes

The second rule is the expensive one. A rollup stays open to fraud proofs for 720 blocks after the block that opened it, and a super share may be 60 blocks older than that block. Your commitment has to survive that whole span so the contracts can check old work against the difficulty you actually promised.

Warning
Pick a difficulty you can leave alone

Once you commit, you are held to that difficulty for 845 blocks before you may change it, and the change then takes a further 125 blocks to bind. That is well over a day on mainnet. Use the difficulty calculator to find your value before you commit to it.

Choosing a difficulty#

Your diff value is the most consequential setting in the file. It decides both what you are paid and whether you get paid at all.

Super shares#

While mining, you will see log messages about super shares. A super share is a share that clears one ten-thousandth of your difficulty target. That makes it rare enough to be evidence of sustained work, and common enough to accumulate.

To be paid for a block, you must have produced 10 super shares within the 60 blocks before that block was found. Those 10 super shares plus your score become one Non-Interactive Share Proof (NISP), which the client submits for you.

Sixty blocks is about 2 hours on mainnet, at Ergo's 2-minute block time. The window is also 60 blocks on testnet, but testnet blocks arrive about every 45 seconds, so there it lasts about 45 minutes.

Those times are averages. Blocks arrive early or late, so on mainnet about 1 window in 13 lasts under 100 minutes. A short window costs every miner super shares at the same time, and the recommendations below allow for it.

How many super shares you produce depends on your hashrate and your diff:

  • Raising diff increases your payout per block, and produces fewer super shares.
  • Lowering diff produces more super shares, and pays less per block.
Warning
More super shares does not mean a bigger payout

Your payout is set entirely by your committed difficulty. Super shares only determine whether you qualify. Ten is enough; a thousand pays exactly the same as ten.

Aim for a diff that averages between 12 and 17 super shares per window. That range is where expected earnings peak. On mainnet, averaging 12 pays you about 75% of the time at the highest score in the range. Averaging 17 pays you about 96% of the time at a lower one. Below 12 your earnings fall quickly, because short windows leave you under 10.

Start at averaging 17, then raise diff slowly. Averaging 17 pays you about 96% of the time on mainnet. It still lands inside the range if your hashrate turns out to be 29% lower than you estimated. Once your payouts arrive steadily, raise diff a little at a time toward averaging 15, where expected earnings peak. Each change is a new commitment, so steps are at least 845 blocks apart, as Changing your difficulty later explains.

Using the difficulty calculator#

Lithos Launcher and the client's web interface both work out these values for you, with the same formulas.

In Lithos Launcher, select Choose or Change next to Difficulty on the Lithos Client card and enter your hashrate. Once your rigs are connected, Use measured fills in the hashrate the client has seen. Let it settle for about 10 minutes of mining first. Pick the option marked Start · recommended.

To use the web interface instead, follow these steps:

  1. Open Mining, then Difficulty, at http://localhost:9000/assets/mining/difficulty. In Lithos Launcher, Lithos panel on the Lithos Client card opens the web interface.
  2. Enter your hashrate.
  3. Leave Account for network difficulty ticked. It sizes the values to how long windows actually last on the network, rather than to a flat 2 hours.
  4. Read the diff on the row marked start. At 100 MH/s on mainnet, that is 4.24M.

To work out a value by hand instead, use the following formula:

diff = (hashrate in H/s × window in seconds) ÷ (10,000 × super shares you want to average)

The window is 7,200 seconds on mainnet. So a 1 GH/s rig averages 17 super shares at a diff of 42.4M, and 12 at 60M.

Mining on Lithos has the full table of payout chances at each average, and starting values for common hashrates.

What submitting costs#

Every NISP you submit carries a bond, which the client posts from your node wallet alongside the proof. You get it back in full when the rollup pays out. You lose it only if someone proves your submission fraudulent, in which case it goes to whoever proved it.

The bond is priced from the difficulty you claimed:

bond = max(0.002 ERG, your score / 25)

Your score is your committed difficulty, and dividing it by 25 gives the bond in nanoERG. So a higher diff raises both what you earn per block and what you must have on hand to claim it. The floor of 0.002 ERG applies below a difficulty of 50M, and above that the bond rises with your difficulty:

Committed difficultyBond per submission
50M or below0.002 ERG, the floor
140M0.0056 ERG
1.0G0.04 ERG
4.0G0.16 ERG
25G1.0 ERG

Keep enough ERG in the node wallet to cover a bond for every rollup you are submitting to at once, plus about 0.001 ERG of transaction fee each. Rollups open on every Lithos block and stay open for 360 blocks, so several can be in flight together.

Info
The bond is a deposit, not a fee

An honest miner gets every bond back. It exists so that a miner who submits a fraudulent proof has something to lose, and so that whoever catches them is paid by the fraudster rather than out of everyone else's share.

Testing values without committing#

You can mine at a difficulty to see how many super shares your rigs produce, without writing anything to the blockchain.

In Lithos Launcher, select Test mining on the Lithos Client card instead of Start client. The client mines at your chosen difficulty and sends no transactions at all: no commitment, no proofs, and nothing extra in any block it finds. Stop the client and select Start client to mine for real.

When setting up yourself, do not commit, leave autoCommit off, and force the stratum to use your diff:

lithos-client/bin/lithos.conf
hocon
stratum.forceConfigDiff = true
state.autoCommit = false

The client then always mines at the diff in your config and never commits it. Your experimental values stay off-chain, and so does your pay: without a difficulty commitment, nothing you mine while testing is payable. Keep the test short.

Warning
Set forceConfigDiff back to false before mining for real

With forceConfigDiff = true, mining at a difficulty below your on-chain commitment produces NISPs that will not be accepted.

Reducing share traffic#

At low difficulties your mining software may send enough shares to trigger errors about duplicate or old shares. Set reduceShareMessages = true, the default in the shipped config, to raise the stratum difficulty to reductionMultiplier times your committed difficulty. The difficulty Lithos evaluates and pays you at is unchanged.

At the default reductionMultiplier = 10000, your mining software sends only super shares. If that leaves it too few shares to show a steady hashrate, lower it to 1000, 100 or 10. In Lithos Launcher, select Adjust next to Share reporting on the Lithos Client card. See Share traffic.

Where Lithos stores its data#

The client keeps its data in a .lithos folder, created the first time it mines a super share. It holds your super shares and rollup state. Do not delete it while the client is running.

The folder is in the client's working directory:

SetupLocation
Lithos LauncherLithos/mainnet/client/.lithos in your home folder, or testnet in place of mainnet
Setting up yourselflithos-client/bin/.lithos, next to the start script

Common problems#

Start with the logs. Lithos Launcher shows the node's and client's console output in its Ergo node and Lithos Client tabs. The following table lists the failures reported most often, and what to do about them:

What you seeCauseFix
The client will not startThe node is not running, or node.storagePath or node.pass is wrongStart the node first. Check the keystore path and password
No blocks are ever marked as Lithos blocksThe node is older than 6.0.7, or than 6.1.7 on the 6.1 lineUpgrade the node to 6.0.7 or later, or 6.1.7 or later
Box lookups fail, or the collateral list is emptyThe node was started without extraIndex = trueAdd it to ergo.conf and restart the node
Your hashrate is far below normalThe Autolykos 2 table does not fit in VRAMSee the memory warning above
Duplicate or old share errorsdiff is low enough to flood the stratumSet reduceShareMessages = true, or raise reductionMultiplier
Mining works, but you are never paidNo difficulty commitment is in force, or you are producing fewer than 10 super shares per 60 blocksCheck the Commitment tab and commit if it says you are not committed, then wait 125 blocks. If that was not it, lower your difficulty
Submissions fail to buildThe node wallet cannot cover a bondFund the wallet. See What submitting costs
Transactions fail to broadcastThe node wallet has no ERG for feesFund the node wallet

Security#

Lithos uses your node's wallet and API key to build and sign transactions on your behalf. Two things follow from that:

  • Use a wallet dedicated to Lithos. The client reads your node's secret keys from its keystore. Create a new node wallet for Lithos rather than using one that holds your savings, and keep in it only the ERG and LIT you intend Lithos to use.
  • Change both default secrets. The shipped lithos.apiKeyHash is the hash of the string hello, and the shipped play.http.secret.key is a placeholder. Anyone who reaches your client with the default API key can move funds. Replace both before running.

Lithos Launcher handles the secrets for you. It generates random API keys for the node and the client, stores them and the wallet password encrypted by the operating system, and writes none of them to a config file. To replace a key, use API keys under Settings.

When setting up yourself, generate a new API key hash with your node's POST /utils/hash/blake2b endpoint at http://127.0.0.1:9053/swagger. Put the resulting hash in lithos.apiKeyHash and keep the original string as your key.

Next steps#

  • Lithos Launcher↗: the launcher's own documentation and releases.
  • Setting up an Ergo node: the full node walkthrough, for setting up yourself.
  • Lithos Protocol: how payouts and collateral work.
  • Mining on Lithos: scores, super shares and NISPs in detail.
  • Lithos API: the client's REST endpoints, callable from these docs.
Edit this page on GitHubsynced from aa061a5
← PreviousSigmaFi bondsNext →Setting up an Ergo node
On this page
  • Before you begin
  • Choosing how to set up
  • Setting up with Lithos Launcher
  • Install the launcher
  • Run quick setup
  • If you already run a node
  • Where the launcher keeps things
  • Setting up yourself
  • Step 1: Set up an Ergo node
  • Step 2: Download and unpack the Lithos client
  • Step 3: Create your configuration file
  • Step 4: Start the client
  • Connecting your mining software
  • Committing your difficulty
  • Letting the client commit for you
  • Changing your difficulty later costs a day, not an hour
  • Choosing a difficulty
  • Super shares
  • Using the difficulty calculator
  • What submitting costs
  • Testing values without committing
  • Reducing share traffic
  • Where Lithos stores its data
  • Common problems
  • Security
  • Next steps