Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.moralis.com/llms.txt

Use this file to discover all available pages before exploring further.

Overview

The DeFi API provides a unified view of a wallet’s DeFi positions across protocols - lending, borrowing, staking, liquid staking, and liquidity pools - on both EVM chains and Solana. It is one cross-chain endpoint set: the same three endpoints return EVM and Solana positions, with an identical response shape. Pass the chain parameter (for example eth, base, polygon, or solana) to choose the network - no separate integration per chain.

What Is the DeFi API?

The DeFi API lets you query:
  • Protocol Summary - overview of all DeFi protocols a wallet uses
  • Positions - detailed position data per protocol
  • Position Details - enhanced breakdown with underlying assets
  • Multi-Chain in One Integration - query EVM and Solana wallets through the same endpoints and schema

Key Features

  • Protocol Detection - automatically identifies which protocols a wallet uses
  • Position Breakdown - detailed view of deposits, borrows, staking, and rewards
  • USD Valuations - position values calculated in USD
  • Unified Schema - identical response shape across EVM and Solana
  • Single Integration - the same filters and parameters across every supported chain

Supported Protocols

Coverage spans thousands of EVM protocols and the top Solana protocols:
  • EVM - 3,000+ protocols including Aave, Compound, Uniswap, Lido, Rocket Pool, Eigenlayer, and all forked Uniswap v2 protocols.
  • Solana - 10 of the most-used protocols, together covering roughly 90% of Solana DeFi TVL: Jito, Save (formerly Solend), Jupiter Lend, Jupiter Perpetual Exchange, Kamino Lend, Sanctum, Raydium, Orca, Drift, and Marinade.
For the full, always-current list per chain, see DeFi Protocols or call the Get Supported DeFi Protocols endpoint with the chain parameter.

Common Use Cases

  • Portfolio Trackers - show DeFi positions alongside tokens and NFTs
  • Cross-Ecosystem Wallets - display EVM and Solana DeFi positions side by side
  • DeFi Dashboards - aggregate positions across protocols and chains
  • Risk Monitoring - track lending health factors and exposure
  • Yield Tracking - monitor staking rewards and LP positions
  • Tax Reporting - calculate DeFi gains and income

EndpointDescription
Wallet ProtocolsSummary of protocols a wallet uses
Wallet PositionsDetailed positions per protocol
Detailed PositionsEnhanced position breakdown
Each endpoint accepts the chain parameter to target an EVM chain or Solana.

Get Started


DeFi API Overview Video