# View loan status

### Request Borrower Status

Make a GET request to `https://api.nomial.io/borrowers/{address}` where `{address}` is your borrower address:

```bash
GET https://api.nomial.io/borrowers/0x1234...
```

The API will return current collateral and debt for the borrower:

```json
{
  "borrower": {
    "name": "borrower1",
    "address": "0x1234..."
  },
  "collateral": {
    "assets": [
      {
        "collateral_pool_address": "0x...",
        "chain": {
          "id": "1",
          "name": "ethereum"
        },
        "token": {
          "address": "0x...",
          "name": "Wrapped Ether",
          "symbol": "WETH",
          "decimals": 18
        },
        "balance": {
          "amount": "10.0",
          "raw": "10000000000000000000"
        }
      }
    ]
  },
  "debt": [
    {
      "pool_address": "0x...",
      "chain": {
        "id": "1",
        "name": "ethereum"
      },
      "token": {
        "address": "0x...",
        "name": "USD Coin",
        "symbol": "USDC",
        "decimals": 6
      },
      "base_debt": {
        "amount": "1000.0",
        "raw": "1000000000"
      },
      "penalty_debt": {
        "amount": "0.0",
        "raw": "0"
      }
    }
  ]
}
```

### Understanding the Response

The response includes:

1. **Borrower Information**:
   * `name`: The name of the borrower
   * `address`: The borrower's address
2. **Collateral Information**:
   * `assets`: Array of collateral assets, each containing:
     * `collateral_pool_address`: The address of the pool where the asset is deposited
     * `chain`: Chain details (ID and name)
     * `token`: Token details (address, name, symbol, decimals)
     * `balance`: Amount currently deposited
3. **Debt Information**:
   * Array of debt positions by pool, each containing:
     * `pool_address`: The inventory pool address
     * `chain`: Chain details (ID and name)
     * `token`: Token details (address, name, symbol, decimals)
     * `base_debt`: Principal and interest the borrower owes to the pool
     * `penalty_debt`: Late payment penalties the borrower owes to the pool

If the borrower has no collateral or no debt, these arrays will be empty in the response.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.nomial.io/view-loan-status.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
