LithosDex pool state
/dex/poolCurrent state of the LithosDex pool. reservesX / reservesY are tradable; pendingX / pendingY are fees awaiting a flush.
Responses
200Current pool stateLDPoolInfo▶
poolNFTstringrequiredToken id of the pool NFT
utxoIdstringrequiredPool box id. Send back as
expectedPoolBoxIdwhen executing.tokenYstringrequiredToken id of the pool's token side
tokenNamestringDisplay name of the pool's token, when known
tokenDecimalsinteger · int32Decimal places implied by raw token amounts
reservesXstringrequirednanoERG the AMM trades with — box value less pendingX. Decimal string.
reservesYstringrequiredRaw token units the AMM trades with — token balance less pendingY. Decimal string.
pendingXstringrequirednanoERG fees accrued but not yet flushed to the vault. Decimal string.
pendingYstringrequiredToken-side fees accrued but not yet flushed. Decimal string.
supplystringrequiredLP shares outstanding. Decimal string.
▶
feeParamsLDFeeParamsrequiredFee numerators over
feeDenom.dexFeeNumstays in the pool;ergFeeNum/tokenFeeNumare set aside for liquidity providers.dexFeeNuminteger · int64requiredergFeeNuminteger · int64requiredtokenFeeNuminteger · int64requiredfeeDenominteger · int64requiredDenominator of every numerator above
accXstringrequiredCumulative ERG fee per share, scaled by 1e27. Decimal string — this value exceeds the exact range of a double and must not be parsed as a JSON number.
accYstringrequiredCumulative token fee per share, same 1e27 scale. Decimal string.
provTokensLeftstringrequiredProvision tokens left in the pool; one is used per deposit. Decimal string.
canFlushbooleanrequiredWhether any fees are pending. A flush needs something to move.
canDepositbooleanrequiredWhether a provision token remains to hand out
syncHeightinteger · int32requiredBlock height this snapshot was taken at
404No pool box found on this network.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node unavailable. 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