# Lending Protocol IDs

Lend and Borrow ID helps expand.network to redirect the query or transaction to the appropriate lend and borrow protocol. By default, it tries to communicate with the Aave V2 on the ethereum mainnet. Following is the list of L\&B protocols with their respective IDs.&#x20;

| Chain Name               | Lend and Borrow Name and ID                                                                                                                                                                                              |
| ------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| Ethereum                 | <ol><li>Aave V2 : <strong>1000</strong></li><li>Aave V3 : <strong>1200</strong></li><li>Compound V2 : <strong>1100</strong></li><li>Compound V3 : <strong>1300</strong></li><li>Morpho : <strong>1400</strong></li></ol> |
| Ethereum Testnet Sepolia | <ol><li>Aave V3 Testnet : <strong>1202</strong></li><li>Compound V3 Testnet : <strong>1302</strong></li></ol>                                                                                                            |
| Avalanche                | <ol><li>Aave V2  : <strong>1003</strong></li><li>Aave V3: <strong>1203</strong></li></ol>                                                                                                                                |
| Polygon                  | <ol><li>Aave V2  : <strong>1005</strong></li><li>Aave V3: <strong>1205</strong></li></ol>                                                                                                                                |
| Arbitrum                 | <ol><li>Aave V3: <strong>1204</strong></li></ol>                                                                                                                                                                         |
| Base                     | <ol><li>Aave V3: <strong>1206</strong></li><li>Morpho<strong>: 1402</strong></li></ol>                                                                                                                                   |
| Optimism                 | <ol><li>Aave V3: <strong>1207</strong></li></ol>                                                                                                                                                                         |


---

# 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.expand.network/ids/lending-protocol-ids.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.
