> ## Documentation Index
> Fetch the complete documentation index at: https://docs.exponent.finance/llms.txt
> Use this file to discover all available pages before exploring further.

# Wallet tranche LP balances

> Retrieve indexed senior and junior LP balances for a wallet.

export const ApiResponse = ({children, errors = {}}) => {
  const [status, setStatus] = useState("200");
  const statuses = ["200", ...Object.keys(errors)];
  return <section className="api-response" aria-label="Response">
      <div className="api-response-header not-prose">
        <h2>Response</h2>
        <div className="api-response-format">
          {statuses.length > 1 ? <select aria-label="Response status" value={status} onChange={event => setStatus(event.target.value)}>
              {statuses.map(code => <option key={code} value={code}>{code}</option>)}
            </select> : <span>200</span>}
          <span className="api-response-mime">application/json</span>
        </div>
      </div>
      <div hidden={status !== "200"}>{children}</div>
      {status !== "200" && <div aria-live="polite">
          {Object.entries(errors[status]).map(([name, value]) => <ResponseField key={name} name={name} type={value === null ? "null" : Array.isArray(value) ? "array" : typeof value}>
              {name === "error" ? "Error message describing why the request failed." : "Additional error details."}
            </ResponseField>)}
        </div>}
    </section>;
};

## Path parameters

<ParamField path="userAddress" type="string" required>
  User wallet address.
</ParamField>

## Query parameters

<ParamField query="market" type="string">
  Filter to a tranching market.
</ParamField>

<ParamField query="tranche_side" type="string">
  Filter to `senior` or `junior`. Other values are ignored.
</ParamField>

<RequestExample dropdown>
  ```bash cURL theme={null}
  curl https://api.exponent.finance/balances/user/tranching/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4
  ```

  ```python Python theme={null}
  import requests

  response = requests.get("https://api.exponent.finance/balances/user/tranching/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4", timeout=30)
  response.raise_for_status()
  print(response.json())
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch("https://api.exponent.finance/balances/user/tranching/HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4");
  if (!response.ok) {
    throw new Error(`Request failed: ${response.status}`);
  }
  const data = await response.json();
  console.log(data);
  ```
</RequestExample>

<ApiResponse errors={{"500": {"error": "<message>"}}}>
  <ResponseField name="user_address" type="string">
    Wallet to which this record belongs.
  </ResponseField>

  <ResponseField name="market_address" type="string">
    CLMM market associated with this record.
  </ResponseField>

  <ResponseField name="tranche_side" type="'senior' | 'junior'">
    Tranche: `senior` or `junior`.
  </ResponseField>

  <ResponseField name="mint_lp" type="string">
    Mint of the senior or junior LP token held by the wallet.
  </ResponseField>

  <ResponseField name="lp_balance" type="string">
    Indexed LP balance in raw token units, preserved as a decimal string.
  </ResponseField>

  <ResponseField name="token_account_count" type="number">
    Number of token accounts contributing to the wallet’s indexed balance.
  </ResponseField>

  <ResponseField name="last_observed_slot" type="number | null">
    Solana slot of the latest balance observation; null when unavailable.
  </ResponseField>

  <ResponseField name="last_updated_at" type="string">
    Time of the latest indexed balance update; null when no observation is available.
  </ResponseField>

  <ResponseField name="last_tx_signature" type="string | null">
    Transaction associated with the latest balance change; null when unavailable.
  </ResponseField>
</ApiResponse>

<ResponseExample>
  ```json 200 theme={null}
  [
    {
      "user_address": "HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4",
      "market_address": "CAdFPvNX3gHZobun6g1W6jesGyQ9fhdsGJZBXTbWjNww",
      "tranche_side": "junior",
      "mint_lp": "4pxn4cYzE78BGFWDZyukfb3mGwwgeNX273gVLk9RsCoE",
      "lp_balance": "0",
      "token_account_count": 0,
      "last_observed_slot": null,
      "last_updated_at": "2026-10-14T15:13:05.638+00:00",
      "last_tx_signature": null
    },
    {
      "user_address": "HRt73vbP87cUmzJJAH5tWyCuwyN9Syws2RxqND9pTMs4",
      "market_address": "CAdFPvNX3gHZobun6g1W6jesGyQ9fhdsGJZBXTbWjNww",
      "tranche_side": "senior",
      "mint_lp": "8JyMo7F6z5x9RSmWEksRaYceFw5W4tNLrXRQHkpuZ6JK",
      "lp_balance": "2999424",
      "token_account_count": 1,
      "last_observed_slot": null,
      "last_updated_at": "2026-10-14T15:13:05.541+00:00",
      "last_tx_signature": null
    }
  ]
  ```

  ```json 500 theme={null}
  {
    "error": "<message>"
  }
  ```
</ResponseExample>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.