API Reference

Retrieve Account DeFi

Return account‘s DeFi portfolio on Monad Network

📘

Supported on Monad Mainnet and Testnet.

🚧

The Monad Mainnet Indexing API is available to Pro tier users. The Monad Testnet Indexing API is accessible to Pro, Basic, and Lite tiers. Free tier members can also enjoy a trial period with 30 free calls. The same request URL is used for both mainnet and testnet. Network selection is handled automatically through the API key.

If you're interested, please register directly through here. Please note that the API Key can also be used for your RPC endpoint.

Support Protocols

  • Uniswap V2
  • Uniswap V3
  • zkSwap V2
  • zkSwap V3
  • Pancake V2
  • Pancake V3
  • Madness
  • Bean Exchange
  • Octo
  • Nostra
  • Curvance
  • Bubble

Parameter

  • address, string - a 42 character address with '0 x' as prefix. The wallet address to check for ERC-20 tokens.

Response

  • code, number - response status code, e.g., 0 for success.
  • message, string - response message, e.g., OK.
  • result, array object - result object protocol portfolio.
    • logo, string - URL to the protocol logo.
    • name, string - the name of the protocol.
    • website, string - protocol website URL.
    • items, array object - object protocol portfolio items.
      • type, string - item type (eg: "liquidity_pool").
      • data, object - liquidity pool data object.
        • isOut, boolean - indicates if the pool is active/inactive.
        • poolId, string - unique pool identifier (contract address).
        • fee, number - pool fee percentage (decimal format).
        • token0, string - contract address of the first token.
        • token1, string - contract address of the second token.
        • balance0, string - balance of token0 in the pool (in wei).
        • balance1, string - balance of token1 in the pool (in wei).
        • rewards, array - array of reward amounts (in wei).
        • tokenDetail0, Token Details Object - detailed information for token.
  • Token Details Object Both tokenDetail0 and tokenDetail1 follow this structure:
    • contractAddress, string - token contract address.
    • logo, string - URL to token logo image.
    • symbol, string - token symbol (e.g., "DAK", "WMON").
    • decimals, number - number of decimal places for the token.
    • name, string - full token name.
    • verified, boolean - whether the token is verified.

Assets item Response

  • type, string - item type (eg: "assets").
  • data, object - assets data object.
    • symbol, string - token symbol (e.g., "DAK", "WMON").
    • logo, string - URL to token logo image.
    • balance, number - balance of token0 in the pool (in wei).
    • decimals, string - number of decimal places for the token.
    • contractAddress, string - token contract address.
    • targetToken, string - the address of the underlying target token.
    • apy, number - annual percentage yield (decimal format).
    • key, array - token type identifier indicating lending/collateral status.
    • verified, boolean - whether the token is verified.

Token Key Types

The key field indicates the token's role in the lending protocol:

  • itoken - Lending Token: Used for lending operations only.
  • ctoken - Collateral Token: Used as collateral only.
  • ictoken - Lending + Collateral Token: Can be used for both lending and as collateral.

Debts item Response

  • type, string - item type (eg: "debts").
  • data, object - assets data object.
    • symbol, string - token symbol (e.g., "DAK", "WMON").
    • logo, string - URL to token logo image.
    • balance, number - balance of token0 in the pool (in wei).
    • decimals, string - number of decimal places for the token.
    • contractAddress, string - token contract address.
    • targetToken, string - the address of the underlying target token.
    • apy, number - annual percentage yield (decimal format).
    • key, array - token type identifier indicating debt status.
    • verified, boolean - whether the token is verified.
Language
Credentials
Header
Click Try It! to start a request and see the response here!