# Moonwell SDK

Moonwell SDK is a TypeScript library that provides a simple and intuitive way to interact with Moonwell's lending protocol. It offers a comprehensive set of tools for querying market data across multiple networks including Base and OP Mainnet.

## Overview

* Up-to-date repository of Moonwell deployed contracts
* First-class APIs for interacting with [**Moonwell Smart Contracts**](https://github.com/moonwell-fi/moonwell-contracts-v2)
* Support for multiple networks: Base, OP Mainnet, Moonbeam, and Moonriver
* Comprehensive market data retrieval
* User position and reward tracking
* Governance functionality
* [**Morpho**](https://morpho.org/) integration

## Key Features

* **Market Data:** Retrieve comprehensive information about Moonwell markets
* **User Positions:** Get user positions across all markets or for specific markets
* **Rewards:** Track user rewards across markets
* **Governance:** Access proposal data and voting information
* **Morpho Integration:** Interact with [**Morpho**](https://morpho.org/) markets and vaults

## Documentation

For detailed documentation and API reference, visit the [**SDK Documentation**](https://sdk.moonwell.fi/docs/getting-started).

For LLM-readable SDK documentation:

* [**sdk.moonwell.fi/llms.txt**](https://sdk.moonwell.fi/llms.txt) - SDK documentation index
* [**sdk.moonwell.fi/llms-full.txt**](https://sdk.moonwell.fi/llms-full.txt) - Full SDK reference with all function signatures, parameters, and TypeScript examples

## Supported Networks

* Base
* OP Mainnet
* Moonbeam
* Moonriver

## Contract Addresses

All deployed contract addresses are maintained as JSON files per chain in the `moonwell-contracts-v2` repository:

[**moonwell-contracts-v2/chains**](https://github.com/moonwell-fi/moonwell-contracts-v2/tree/main/chains)


---

# 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.moonwell.fi/moonwell/developers/moonwell-sdk.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.
