GET
/
1
/
wallet
/
defi-positions
Get Wallet Defi-Positions
curl --request GET \
  --url https://explorer-api.mobula.io/api/1/wallet/defi-positions
{
  "data": [
    {
      "protocol": {
        "name": "<string>",
        "id": "<string>",
        "logo": "<string>",
        "url": "<string>"
      },
      "positions": [
        {
          "type": "<string>",
          "name": "<string>",
          "chain_id": "<string>",
          "contract": "<string>",
          "created_at": "<string>",
          "tokens": [
            {
              "name": "<string>",
              "symbol": "<string>",
              "contract": "<string>",
              "amount": "<string>",
              "amountRaw": "<string>",
              "decimals": "<string>",
              "amount_usd": "<string>",
              "logo": "<string>",
              "price_usd": "<string>"
            }
          ],
          "rewards": [
            {
              "name": "<string>",
              "symbol": "<string>",
              "contract": "<string>",
              "amount": "<string>",
              "amountRaw": "<string>",
              "decimals": "<string>",
              "amount_usd": "<string>",
              "price_usd": "<string>"
            }
          ],
          "extra": {
            "lp_token_amount": "<string>",
            "position_staked_amount": "<string>",
            "factory": "<string>",
            "share_of_pool": "<string>",
            "type": "supply",
            "health_factor": 123,
            "reserve0": "<string>",
            "reserve1": "<string>",
            "reserve_usd": 123
          }
        }
      ]
    }
  ],
  "wallets": [
    "<string>"
  ]
}

Query Details

  • You must provide either the wallet parameter or the wallets parameter.
  • Currently supports Uniswap V2 positions on supported chains.
ParameterRequiredDescription
walletCond.Single wallet address to query.
walletsCond.Comma-separated list of wallet addresses to query.
blockchainsCond.Comma-separated list of blockchain names or IDs (e.g., ethereum,solana). Defaults to all supported chains.
testnetCond."true" to include testnet chains in the response.
unlistedAssetsCond."true" to include unlisted or non-indexed assets in the results.

Usage Examples

  • Query DeFi Positions on Testnet Chains for a Single Wallet
curl -X GET "https://explorer-api.mobula.io/api/1/wallet/defi-positions?blockchains=mega+testnet&testnet=true&wallet=0xb3b0af18b0a97543ad350965bec046bc609c77fb"

  • Query DeFi Positions Including Unlisted Assets for a Single Wallet (All Chains by Default)
curl -X GET "https://explorer-api.mobula.io/api/1/wallet/defi-positions?wallet=0xc88b2264d3ac0456a4863bf021de4e8ee1129a6b&unlistedAssets=true"
  • Query DeFi Positions for Multiple Wallets Including Unlisted Assets (All Chains by Default)
curl -X GET "https://explorer-api.mobula.io/api/1/wallet/defi-positions?wallets=0xc88b2264d3ac0456a4863bf021de4e8ee1129a6b,0x557C4fE7D3A4aaaF28C25c129b2B02a84a90a6c7&unlistedAssets=true"

Query Parameters

wallet
string
wallets
string
blockchains
string
testnet
string
unlistedAssets
string

Response

200 - application/json

Wallet Defi-Positions response

The response is of type object.