dex
Get Wallet Position
Retrieves comprehensive information about a wallet’s positions across various DEX protocols. It aggregates key data—including protocol details, liquidity positions, token balances (with USD valuations), and pool metrics (such as reserve amounts and share of pool)—to provide a clear snapshot of the wallet’s DeFi exposure.
💡 Compute Unit Value: 170 (Fixed)
get/defi/v1/dex/getwalletposition
Request
- Base URLhttps://svc.blockdaemon.com
- URLhttps://svc.blockdaemon.com/defi/v1/dex/getwalletposition
- AuthAPI key in header X-API-Key
Query parameters
addressstring required
Public address of the user.
Example:0xdAe2F6EdDdA6fb4fb60cc02633DE27e2b431B402
Response
Successful response
Example response
{
"status": 200,
"msg": "success",
"data": [
{
"protocol_name": "Uniswap v2",
"protocol_id": "uniswap-v2",
"protocol_url": "https://app.uniswap.org/pools/v2",
"account_data": {},
"total_projected_earnings_usd": {
"daily": null,
"weekly": null,
"monthly": null,
"yearly": null
},
"position": {
"label": "liquidity",
"tokens": [
{
"token_type": "supplied",
"name": "Ocean Token",
"symbol": "OCEAN",
"contract_address": "0x7afebbb46fdb47ed17b22ed075cde2447694fb9e",
"decimals": "18",
"balance": "1.6081842334083308815902940220990230780999386e+23",
"usd_price": 0.3606446348915287
},
{
"token_type": "supplied",
"name": "Wrapped Ether",
"symbol": "WETH",
"contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"decimals": "18",
"balance": "164740674239285818005.81690560285198009496",
"usd_price": 3711.793202043769
},
{
"token_type": "defi-token",
"name": "Uniswap V2",
"symbol": "UNI-V2",
"contract_address": "0xf063806d07fe742b031a543145fb46d1bc670fe8",
"decimals": "18",
"balance": "4814188687222267334774",
"usd_price": null
}
],
"address": "0xf063806d07fe742b031a543145fb46d1bc670fe8",
"balance_usd": 669481.6163110741,
"total_unclaimed_usd_value": null,
"position_details": {
"reserve0": "160818.42334083308815902940220990230780999386",
"reserve1": "164.74067423928581800581690560285198009496",
"factory": "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f",
"pair": "0xf063806d07fe742b031a543145fb46d1bc670fe8",
"share_of_pool": 26.97033761448816
}
}
},
{
"protocol_name": "Uniswap v3",
"protocol_id": "uniswap-v3",
"protocol_url": "https://app.uniswap.org",
"account_data": {},
"total_projected_earnings_usd": {
"daily": null,
"weekly": null,
"monthly": null,
"yearly": null
},
"position": {
"label": "Liquidity",
"balance_usd": 92.79077171190019,
"total_unclaimed_usd_value": 0,
"tokens": [
{
"token_type": "supplied",
"name": "USD Coin",
"symbol": "USDC",
"contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"decimals": "6",
"balance": "0",
"usd_price": 0.9984084045632092
},
{
"token_type": "supplied",
"name": "Wrapped Ether",
"symbol": "WETH",
"contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"decimals": "18",
"balance": "24998906636503404",
"usd_price": 3711.793202043769
},
{
"token_type": "reward",
"name": "USD Coin",
"symbol": "USDC",
"contract_address": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
"decimals": "6",
"balance": "0",
"usd_price": 0.9984084045632092
},
{
"token_type": "reward",
"name": "Wrapped Ether",
"symbol": "WETH",
"contract_address": "0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2",
"decimals": "18",
"balance": "0",
"usd_price": 3711.793202043769
}
]
}
}
]
}Changes
No recorded changes to this operation across all 1 revision of this API.