One LithosDex pool and its vault
/dex/pools/{poolNft}One pool as the index last read it, with its fee vault read from the node now.
Path parameters
poolNftstringrequiredThe pool's NFT id, 64 hex characters
Responses
200The pool and its vaultLDPoolDetail▶
▶
poolLDPoolSummaryrequiredOne LithosDex pool as the index last read it. Amounts are decimal strings in base units.
poolNFTstringrequiredkindstringrequiredn2tis ERG against a token,t2ttoken against tokenone ofn2tt2tutxoIdstringrequiredThe pool box the index read
inclusionHeightinteger · int32required▶
tokenXLDPoolTokenrequiredOne side of a pool. A verified token's name, ticker and decimals come from the client's verified list; any other token's from the node's token index, where whoever minted the token chose them.
tokenIdstringrequiredToken id, or
ERGfor the X side of an ERG/token poolnamestringtickerstringShort symbol. Verified tokens and ERG only.
decimalsinteger · int32verifiedbooleanrequired
▶
tokenYLDPoolTokenrequiredOne side of a pool. A verified token's name, ticker and decimals come from the client's verified list; any other token's from the node's token index, where whoever minted the token chose them.
tokenIdstringrequiredToken id, or
ERGfor the X side of an ERG/token poolnamestringtickerstringShort symbol. Verified tokens and ERG only.
decimalsinteger · int32verifiedbooleanrequired
reservesXstringrequiredreservesYstringrequiredpendingXstringrequiredFees awaiting a flush to the vault
pendingYstringrequiredsupplystringrequiredShares issued
▶
feeParamsLDFeeParamsrequiredFee numerators over
feeDenom.dexFeeNumstays in the pool;ergFeeNum/tokenFeeNumare set aside for liquidity providers.dexFeeNuminteger · int64requiredergFeeNuminteger · int64requiredtokenFeeNuminteger · int64requiredfeeDenominteger · int64requiredDenominator of every numerator above
provTokensLeftstringrequiredDeposits the pool can still take, one provision token each
pricenumber · doubleUnits of Y per unit of X at display decimals. Absent when either side's decimals are unknown.
verifiedbooleanrequiredWhether the client's verified list names this pool
genesisCheckedbooleanrequiredWhether this pool's genesis was checked. False for verified pools, which are checked by hand, and while the node could not be read.
problemsstring[]requiredGenesis facts this pool breaks. Any one can let the pool be drained.
warningsstring[]requiredRisks short of that, such as too little ERG to survive storage rent.
▶
vaultLDPoolVaultrequiredA pool's fee vault. Amounts are decimal strings in base units.
vaultNFTstringrequiredutxoIdstringrequiredaccXstringrequiredFee per share of X, scaled by 1e27, as of the last flush
accYstringrequiredbalanceXstringrequiredFees held for provisions to claim
balanceYstringrequired
404No LithosDex pool with that NFT.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503The index is still building, or the vault could not be read. Retry.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
defaultErrorApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description