Skip to main content
GET
Returns the total collateral one address has locked across all of its open loans in a market, read from the contract. This is the figure the market’s maxUserCollateral cap is checked against when the address opens a loan or adds collateral. A cap of 0 means the market sets no per-borrower limit.

Path Parameters

string
required
The market’s record ID, as id on List Markets, not its contract address. See Market IDs.
string
required
Borrower address, 0x followed by 40 hex characters.

Response Fields

object
This is an aggregate across every open loan the address holds in this market, not a per-loan figure. Collateral leaves it when it is withdrawn, returned on close, or seized in a liquidation. For the breakdown, use Get User Loans.
The example below reads the cap from Get Supply Caps alongside the total and works out how much more collateral the borrower may post.

Error Codes