GET /user/{user_id}/loans

List Loans by Wallet - /user/{user_id}/loans

Route GET https://borrow.pods.finance/v1/user/{user_id}/loans

Description This route is used to list all active loans associated with a particular wallet address.

Request

Parameters

  • user_id: The id of the user to retrieve loans for.

Example Request

GET https://borrow.pods.finance/v1/wallet/0x1234567890abcdef/loans

Responses

Success (200 OK) If the request is successful, the API will return a status code of 200 with the following response structure.

Example Response

jsonCopy code{
  "wallet_address": "0x1234567890abcdef",
  "loans": [
    {
      "loan_id": "abc123",
      "amount_borrowed": 100,
      "collateral_type": "ETH",
      "collateral_amount": 1,
      "status": "active"
    },
    {
      "loan_id": "def456",
      "amount_borrowed": 50,
      "collateral_type": "BTC",
      "collateral_amount": 0.2,
      "status": "active"
    }
  ]
}

Last updated