LithosDex fee vault state
/dex/vaultCurrent state of the fee vault, which holds flushed fees. payableX excludes vaultMin, which is never paid out.
Responses
200Current vault stateLDVaultInfo▶
vaultNFTstringrequiredToken id of the vault NFT
utxoIdstringrequiredVault box id. Send back as
expectedVaultBoxIdwhen executing.accXstringrequiredThe pool's ERG accumulator as of the last flush. Decimal string.
accYstringrequiredToken side of the same. Decimal string.
balanceXstringrequiredTotal nanoERG held by the vault box, including the rent reserve. Decimal string.
balanceYstringrequiredToken-side fees held. Zero until a flush carries any. Decimal string.
payableXstringrequirednanoERG the vault can actually part with — balanceX less vaultMin. Decimal string.
payableYstringrequiredTokens the vault can part with. Nothing is held back on this side. Decimal string.
tokenYstringThe pool's token, absent while the vault holds no token entry
vaultMinstringrequiredHeld back from every payout so the vault survives storage rent. Decimal string.
lastFlushHeightinteger · int32Height of the most recent flush observed. Absent until one is seen.
syncHeightinteger · int32required
404No vault 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