> For the complete documentation index, see [llms.txt](https://docs.moonwell.fi/moonwell/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.moonwell.fi/moonwell/developers/moonwell-sdk.md).

# 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)
