LithosDocs
ProtocolPayoutsTokenStatsDocs
Start mining
Documentation home
Protocol
  • Lithos Protocol
  • LFSM
    • Rollups
    • NISPs
    • Emissions
    • Mining on Lithos
    • Candidate building
    • Ergo Voting
  • LithosDex
    • Trading with orders
    • Providing liquidity
Run Lithos
  • Startup guide
    • Setting up an Ergo testnet 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
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
    • getLocal mining activity
    • getCollateral market snapshot
    • getList queue boxes
    • getList the active set
    • getPermit price history
    • getYour locked block rewards
    • postClaim unlocked block rewards
    • postQuote joining the queue
    • postJoin the collateral queue
    • getLithosDex pool state
    • 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
    • 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
    • getWallet balances and lending status
    • 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
  • Client API
  • Failure modes
Network
  • Live stats
  • Public stats API
  • Ergo Platform↗
  • SOAT Miner↗
Community
  • Telegram↗
  • X / Twitter↗
  • GitHub↗
Lithos
© 2026 Lithos Protocol. Open source under the MIT licence.λίθος — stone
Docs/Client API/Lithos Dex

LithosDex fee vault state

get/dex/vault

Current state of the fee vault, which holds flushed fees. payableX excludes vaultMin, which is never paid out.

Responses

200Current vault stateLDVaultInfo▶
  • vaultNFTstringrequired

    Token id of the vault NFT

  • utxoIdstringrequired

    Vault box id. Send back as expectedVaultBoxId when executing.

  • accXstringrequired

    The pool's ERG accumulator as of the last flush. Decimal string.

  • accYstringrequired

    Token side of the same. Decimal string.

  • balanceXstringrequired

    Total nanoERG held by the vault box, including the rent reserve. Decimal string.

  • balanceYstringrequired

    Token-side fees held. Zero until a flush carries any. Decimal string.

  • payableXstringrequired

    nanoERG the vault can actually part with — balanceX less vaultMin. Decimal string.

  • payableYstringrequired

    Tokens the vault can part with. Nothing is held back on this side. Decimal string.

  • tokenYstring

    The pool's token, absent while the vault holds no token entry

  • vaultMinstringrequired

    Held back from every payout so the vault survives storage rent. Decimal string.

  • lastFlushHeightinteger · int32

    Height of the most recent flush observed. Absent until one is seen.

  • syncHeightinteger · int32required
404No vault box found on this network.ApiError▶
  • errorintegerrequired

    Error code

  • reasonstringrequired

    Error message explaining the reason of the error

  • detailstringrequirednullable

    Detailed error description

503Node unavailable. Retry.ApiError▶
  • errorintegerrequired

    Error code

  • reasonstringrequired

    Error message explaining the reason of the error

  • detailstringrequirednullable

    Detailed error description

defaultErrorApiError▶
  • errorintegerrequired

    Error code

  • reasonstringrequired

    Error message explaining the reason of the error

  • detailstringrequirednullable

    Detailed error description

← PreviousLithosDex pool stateNext →List your outstanding orders
Request
curl -X GET "http://localhost:9000/dex/vault"
Response
{
  "vaultNFT": "670a188c61b803a5ef12fedb2eb4ed7ab7b1eba1df9787f780a122bf3875781d",
  "utxoId": "88c297f99da7172f6aa20efbead69aa40e2b7734a1873d66ca1db6b19d214db6",
  "accX": "38640000000000000000000000",
  "accY": "1167600000000000000000000",
  "balanceX": "9420000000",
  "balanceY": "284300000",
  "payableX": "9320000000",
  "payableY": "284300000",
  "tokenY": "86e272f770aa4ef48ad7e6d6dbe98b5069edd8383a403a8edb3ceed8a3d5cea3",
  "vaultMin": "100000000",
  "lastFlushHeight": 1298100,
  "syncHeight": 1312460
}