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/Client API/Statistics

Collateral inventory

get/stats/collateral

How many unspent boxes match the configured collateral script and token, what they hold in total, and what they bid. This is protocol-wide inventory — not this client's spendable balance, not mining income, and no promise that the local miner can use any given box.

fees is the live bid book. A miner spends whichever collateral box pays it most, so the distribution there is what a lender is bidding against and fees.bestNanoErg is the bid to beat. Read it with /collateral/active, which names the individual boxes behind it.

queue is the same for boxes still waiting. The queue activates boxes strictly in order, and live boxes compete by bid in whole 0.001 ERG steps, so queue.firstNanoErg, the least bid in the step above every queued bid, puts a new box ahead of every box queued before it.

selection is what lenders put in and got back over the retained history, by how each spent box was taken: by bid, or through clearance once its box was clearanceAge blocks old. It covers the Lithos blocks recorded since this release could read selections; coveredBlocks says how many.

Each background read looks at up to 1,000 boxes; hitting that cap sets partial and reports only what was scanned. Check status and observedAt before showing the numbers as current: loading and disabled responses hold placeholders, and a failed refresh keeps the previous inventory under an unavailable status. The request never refreshes the inventory itself.

Responses

200The cached inventory, with freshness and completeness.CollateralStats▶
  • statusstringrequired

    Freshness of the inventory. Only ready is current as of the last successful check.

    one ofloadingdisabledreadystaleunavailable
  • observedAtinteger · int64

    When the inventory was read, in Unix milliseconds. Absent before the first successful read.

  • ▶
    sourceMiningCursor

    The processed chain point a statistics result was read from.

    • heightintegerrequired
    • blockIdstringrequired
    • parentIdstringrequired
    • timestampinteger · int64required

      The block's own timestamp in Unix milliseconds, not the time the client read it.

  • boxesintegerrequired

    Unspent collateral boxes seen. A partial result counts only what was scanned.

    0 – 1000
  • nanoErgstringrequired

    Exact total nanoERG in those boxes. Not a wallet balance and not mining income.

    decimal string
  • partialbooleanrequired

    True when the scan hit its cap, or no complete observation exists yet.

  • ▶
    feesCollateralFeeStatsrequired

    The priority bids carried by the observed boxes — the book a miner picks from, since a miner spends whichever box pays it most.

    Percentiles cover every observed box, floor and bid alike, because that is the distribution a lender competes against. While most boxes sit at the floor the median is 0, which is the honest answer rather than a gap in the data. bestNanoErg is the bid to beat.

    • atFloorintegerrequired

      Boxes bidding nothing.

      0 – …
    • biddingintegerrequired

      Boxes offering the finder something.

      0 – …
    • unreadableintegerrequired

      Boxes whose R4 could not be read. Always 0 in practice — the contract writes it — and a non-zero value means the inventory counts more boxes than the distribution does.

      0 – …
    • totalNanoErgstringrequired

      An exact nonnegative integer as a decimal string. Parse it without going through a float.

      decimal string
    • bestNanoErgstringrequired

      An exact nonnegative integer as a decimal string. Parse it without going through a float.

      decimal string
    • medianNanoErgstringrequired

      An exact nonnegative integer as a decimal string. Parse it without going through a float.

      decimal string
    • p90NanoErgstringrequired

      An exact nonnegative integer as a decimal string. Parse it without going through a float.

      decimal string
    • ▶
      bucketsCollateralFeeBucket[]required

      The floor band first, then quarters of break-even, then everything above it.

      • fromNanoErgstringrequired

        An exact nonnegative integer as a decimal string. Parse it without going through a float.

        decimal string
      • toNanoErgstring

        Absent on the open-ended top band, which holds every bid above break-even.

        decimal string
      • boxesintegerrequired
        0 – …
  • errorstring

    Short failure summary. Details stay in the client log.

  • ▶
    queueCollateralQueueStats

    The bids of the boxes waiting in the queue, read with the live inventory.

    • boxesintegerrequired

      Queued boxes seen, including any whose bid could not be read.

    • biddingintegerrequired

      Queued boxes bidding above the floor.

    • unreadableintegerrequired

      Queued boxes whose fee channel could not be read. Left out of every bid figure.

    • bestNanoErgstringrequired

      The highest priority fee in the queue, 0 when every box is at the floor.

    • bestStepBoxesintegerrequired

      Queued boxes whose bid falls in the same 0.001 ERG step as the best, which tie with it once live.

    • firstNanoErgstringrequired

      The least priority fee in the step above the best queued bid. A box bidding it is taken ahead of every box queued before it, unless one of those reaches the clearance age first.

    • partialbooleanrequired

      True when the queue held more boxes than one read takes (1,000).

  • ▶
    selectionCollateralSelectionStats
    • lithosBlocksinteger · int64required

      Lithos blocks in the retained history.

    • coveredBlocksinteger · int64required

      Of those, the blocks whose selection was recorded. The rest were recorded before this release, or the index does not show their activation.

    • fromHeightinteger

      The first retained height.

    • clearanceAgeintegerrequired

      Blocks a live box must age before any client takes it first whatever it bids, as this release ships it.

    • ▶
      bidCollateralPathStatsrequired

      What the lenders of boxes taken one way put in and got back. Cost is the queue box: the principal and the whole priority fee. What came back is the block reward less re-emission, and the block's fees, both paid to the lender's key.

      • boxesinteger · int64required
      • meanPriorityFeeNanoErgstring

        Absent with no boxes.

      • meanWaitBlocksinteger · int64

        Mean blocks from the block that included the queue box to the one that spent the collateral. Absent with no boxes.

      • costNanoErgstringrequired
      • receivedNanoErgstringrequired
      • netNanoErgstringrequired

        What came back less the cost. Signed.

      • aprPercentnumber · double

        The net over every box's ERG locked from its queue box's block until its reward unlocks, 720 blocks after the spend, as a simple yearly rate at 262,800 blocks a year. Pooled, so a large box weighs more than a small one. ERG only: the LIT permit is left out. Absent with nothing locked.

    • ▶
      clearanceCollateralPathStatsrequired

      What the lenders of boxes taken one way put in and got back. Cost is the queue box: the principal and the whole priority fee. What came back is the block reward less re-emission, and the block's fees, both paid to the lender's key.

      • boxesinteger · int64required
      • meanPriorityFeeNanoErgstring

        Absent with no boxes.

      • meanWaitBlocksinteger · int64

        Mean blocks from the block that included the queue box to the one that spent the collateral. Absent with no boxes.

      • costNanoErgstringrequired
      • receivedNanoErgstringrequired
      • netNanoErgstringrequired

        What came back less the cost. Signed.

      • aprPercentnumber · double

        The net over every box's ERG locked from its queue box's block until its reward unlocks, 720 blocks after the spend, as a simple yearly rate at 262,800 blocks a year. Pooled, so a large box weighs more than a small one. ERG only: the LIT permit is left out. Absent with nothing locked.

← PreviousThis client's payouts and claimsNext →This wallet's lending earnings
Request
curl -X GET "http://localhost:9000/stats/collateral"
Response
{
  "status": "loading",
  "observedAt": 0,
  "source": {
    "height": 0,
    "blockId": "string",
    "parentId": "string",
    "timestamp": 0
  },
  "boxes": 0,
  "nanoErg": "0",
  "partial": true,
  "fees": {
    "atFloor": 0,
    "bidding": 0,
    "unreadable": 0,
    "totalNanoErg": "1000000000",
    "bestNanoErg": "1000000000",
    "medianNanoErg": "1000000000",
    "p90NanoErg": "1000000000",
    "buckets": [
      {
        "fromNanoErg": "1000000000",
        "toNanoErg": "0",
        "boxes": 0
      }
    ]
  },
  "error": "string",
  "queue": {
    "boxes": 0,
    "bidding": 0,
    "unreadable": 0,
    "bestNanoErg": "string",
    "bestStepBoxes": 0,
    "firstNanoErg": "string",
    "partial": true
  },
  "selection": {
    "lithosBlocks": 0,
    "coveredBlocks": 0,
    "fromHeight": 0,
    "clearanceAge": 0,
    "bid": {
      "boxes": 0,
      "meanPriorityFeeNanoErg": "string",
      "meanWaitBlocks": 0,
      "costNanoErg": "string",
      "receivedNanoErg": "string",
      "netNanoErg": "string",
      "aprPercent": 0
    },
    "clearance": {
      "boxes": 0,
      "meanPriorityFeeNanoErg": "string",
      "meanWaitBlocks": 0,
      "costNanoErg": "string",
      "receivedNanoErg": "string",
      "netNanoErg": "string",
      "aprPercent": 0
    }
  }
}