# Moonwell SDK ## Docs - [Example](/docs/example): This is an example page. - [Hello world](/docs/example): This is me. - [Getting Started](/docs/getting-started): Integrate Moonwell SDK with just a few lines of code - [Installation](/docs/installation): Install Moonwell SDK via your package manager. - [Types](/docs/glossary/types): Glossary of Types in moonwell-sdk - [getMorphoMarket](/docs/actions/morpho/getMorphoMarket): Retrieves detailed information about a specific Morpho market, including its current state, parameters, and optionally its reward configurations. The market can be queried either using chainId and marketId combination, or using network and market name. - [getMorphoMarketUserPosition](/docs/actions/morpho/getMorphoMarketUserPosition): Retrieves detailed information about a user's position in a specific Morpho market, including their supplied and borrowed amounts, rewards, and other position-specific metrics. - [getMorphoMarketUserPositions](/docs/actions/morpho/getMorphoMarketUserPositions): Retrieves all active positions for a specific user across Morpho markets, including their supplied and borrowed assets, along with corresponding balances and other position-specific details. - [getMorphoMarkets](/docs/actions/morpho/getMorphoMarkets): Retrieves a comprehensive list of all Morpho lending and borrowing markets supported by Moonwell, including their current states, interest rates, and market-specific parameters. Each market contains detailed information about the underlying asset, total supply, total borrow, and current market conditions. - [getMorphoUserBalances](/docs/actions/morpho/getMorphoUserBalances): Retrieves all token balances for a specific user across Moonwell isolated markets. - [getMorphoUserRewards](/docs/actions/morpho/getMorphoUserRewards): Retrieves all rewards earned and amounts for a specific user across Moonwell isolated markets. - [getMorphoVault](/docs/actions/morpho/getMorphoVault): Returns detailed information about a specific Moonwell Morpho Vault, including its current state, configuration, and optionally its reward data. - [getMorphoVaultSnapshots](/docs/actions/morpho/getMorphoVaultSnapshots): Returns historical snapshots of a Moonwell Morpho Vault's state, including metrics like total supply and total borrow at different points in time. - [getMorphoVaultUserPosition](/docs/actions/morpho/getMorphoVaultUserPosition): Retrieves detailed information about a user's position in a specific Moonwell Morpho Vault, including their deposited assets, earned rewards, and other position-specific metrics. - [getMorphoVaultUserPositions](/docs/actions/morpho/getMorphoVaultUserPositions): Retrieves all active Moonwell Morpho Vault positions for a specific user address. This function returns detailed information about a user's deposits, including the amount deposited, current value, and any accrued rewards across all Moonwell Morpho Vaults they participate in. - [getMorphoVaults](/docs/actions/morpho/getMorphoVaults): Retrieves a list of all Moonwell Morpho Vaults with their current state, including supply and borrow rates, total deposits, total borrows, and other key metrics. - [getCirculatingSupplySnapshots](/docs/actions/governance/getCirculatingSupplySnapshots): Returns WELL circulating supply snapshots. - [getDelegates](/docs/actions/governance/getDelegates): Returns a list of all protocol delegates. Delegates are accounts that have been given voting power by other token holders to participate in governance decision. - [getDiscussions](/docs/actions/governance/getDiscussions): Returns all governance discussions across the Moonwell protocol. This function allows you to fetch the complete list of active and past governance discussions, including proposals, their descriptions, and related metadata. - [getGovernanceTokenInfo](/docs/actions/governance/getGovernanceTokenInfo): Returns information about the specified governance token, including its total supply. - [getProposal](/docs/actions/governance/getProposal): Retrieves detailed information about a specific governance proposal from the Moonwell protocol. This function allows you to fetch proposal data such as the proposal's current state, voting results, description, and associated actions by providing the proposal's ID and network information. - [getProposals](/docs/actions/governance/getProposals): Returns all governance proposals from the Moonwell protocol. This includes both active and historical proposals, allowing you to view the complete governance history. Each proposal contains details such as the proposal title, description, voting status, vote counts, and execution status. - [getSnapshotProposal](/docs/actions/governance/getSnapshotProposal): Retrieves detailed information about a specific governance proposal from Moonwell Offchain Governance on [Snapshot](https://snapshot.org/). This function allows you to fetch proposal data such as the proposal title, description, voting options, current voting results, and other metadata using the proposal's unique identifier. - [getSnapshotProposals](/docs/actions/governance/getSnapshotProposals): Returns all governance proposals from Moonwell Offchain Governance on [Snapshot](https://snapshot.org/) including both active and completed proposals. This function allows you to query proposals across different networks and includes details such as proposal titles, descriptions, voting periods, choices, and current voting results. You can filter proposals by chain ID or network and paginate through results. - [getStakingInfo](/docs/actions/governance/getStakingInfo): Returns detailed information about the current staking state in the Moonwell protocol, including rewards data and protocol parameters. This function is useful for retrieving information about WELL token staking, such as total staked amounts and current reward rates. - [getStakingSnapshots](/docs/actions/governance/getStakingSnapshots): Retrieves historical snapshots of staking positions across the protocol. These snapshots capture the state of all staking positions at specific points in time, including information such as: - [getUserStakingInfo](/docs/actions/governance/getUserStakingInfo): Retrieves detailed staking information for a specific user address across Moonwell's protocol. This includes data about the user's staked positions, rewards, and other staking-related metrics. The function can be used to query information on different networks within the Moonwell ecosystem. - [getUserVoteReceipt](/docs/actions/governance/getUserVoteReceipt): Retrieves the voting details for a specific user's vote on a governance proposal. This includes information such as: - [getUserVotingPowers](/docs/actions/governance/getUserVotingPowers): Retrieves the voting power information for a specific user's governance tokens. The function returns details about a user's current voting capabilities, including their direct token-based voting power, any voting power delegated to them by other users, and their own delegation status. - [getMarket](/docs/actions/core/getMarket): Retrieves detailed information about a specific Moonwell lending market. - [getMarketSnapshots](/docs/actions/core/getMarketSnapshots): Returns market snapshots for either core or isolated markets on a specified network. - [getMarkets](/docs/actions/core/getMarkets): Retrieves a list of all markets available on Moonwell. Each market contains detailed information about the asset, including supply and borrow rates, total liquidity, collateral factor, and other key metrics. - [getUserBalances](/docs/actions/core/getUserBalances): Returns all token balances for a specific user across Moonwell core and isolated markets. - [getUserPosition](/docs/actions/core/getUserPosition): Returns a user's lending and borrowing position in a specific Moonwell market, including their supplied assets, borrowed amounts, and account health information. - [getUserPositions](/docs/actions/core/getUserPositions): Returns all user positions across Moonwell core and isolated markets. - [getUserReward](/docs/actions/core/getUserReward): Returns a user's reward for a specific market. - [getUserRewards](/docs/actions/core/getUserRewards): Returns all user rewards across Moonwell core and isolated markets.