Your lending status
/collateral/walletapi_keyThis wallet's side of the collateral market: lender keys and their state, queued and live positions, and the self-collateralization settings in effect. Balances are under GET /wallet/balances.
Responses
200Lender keys, positions and settingsWalletCollateralStatus▶
This wallet's side of the collateral market. Lender keys are the expensive part to compute, so the client serves them from a short-lived cache rather than rescanning per request.
autoCollateralizebooleanrequiredWhether the client joins the queue on its own timer. While this is true the client refuses manual joins — the automated pass owns lender-key selection, and a manual join can take a key it is already using. Turn it off in the client config to join by hand.
maxOwnCollateralinteger · int32requiredConfigured ceiling on live positions owned by this wallet
maxJoinsPerRuninteger · int32requiredMost positions one automated pass creates. Does not bound a manual join, which is limited by free lender keys, the exposure budget and the wallet balance.
maxLenderKeysinteger · int32requiredWallet addresses dedicated to lending
maxPermitPerJoinLitstringrequiredThe permit price above which automated joins stop. Decimal string.
ownPositionsQueuedinteger · int32requiredownPositionsLiveinteger · int32requiredownBudgetRemaininginteger · int32requiredHow many more positions the configured exposure budget allows
freeLenderKeysinteger · int32requiredKeys with status FREE — positions that can be opened without deriving a new key. A join needs one key per position.
keysDerivableinteger · int32requiredFurther keys the client may derive before reaching
maxLenderKeys. A join of N positions is possible whenfreeLenderKeys + keysDerivable >= N.▶
lenderKeysCollateralLenderKeyStatus[]requiredaddressstringrequiredstatusstringrequiredFREE has no position and can join. QUEUED is waiting in the queue. ACTIVE holds a live collateral box. RETIRING held one until recently and cannot be reused yet. Only FREE keys are available to a join. One key holds at most one position; a second position under a key already in the active set is forfeited.
one ofFREEQUEUEDACTIVERETIRINGpositioninteger · int64Queue position, when QUEUED
▶
positionsCollateralPositionSummary[]requiredkindstringrequiredone ofQUEUEDLIVEboxIdstringrequiredpositioninteger · int64Queue position, when QUEUED
principalNanoErgsstringrequiredDecimal string.
permitLitstringrequiredPermit paid at join. Present for QUEUED positions only.
carriedLitstringLIT carried on the box — emission plus permit together. Present for LIVE positions only. Decimal string.
creationHeightinteger · int32required
403Missing or wrong api_keyApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
404No emission state on this network yet, or the node is not indexed.ApiError▶
errorintegerrequiredError code
reasonstringrequiredError message explaining the reason of the error
detailstringrequirednullableDetailed error description
503Node or wallet 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