Get DeFi Positions
Retrieve all DeFi positions for a wallet across major protocols via Sim Dune API (beta). Returns positions by type: Erc4626 vaults, Tokenized lending (Aave aTokens), UniswapV2 LP, and Uniswap V3/V4 NFT positions. Includes token balances, USD values, underlying holdings, and tick-range data for concentrated liquidity. Ideal for: DeFi portfolio tracking, position monitoring, yield reporting, portfolio management dashboards.
Catalog action Blockchain Data
Retrieve all DeFi positions for a wallet across major protocols via Sim Dune API (beta). Returns positions by type: Erc4626 vaults, Tokenized lending (Aave aTokens), UniswapV2 LP, and Uniswap V3/V4 NFT positions. Includes token balances, USD values, underlying holdings, and tick-range data for concentrated liquidity. Ideal for: DeFi portfolio tracking, position monitoring, yield reporting, portfolio management dashboards.
At a Glance
| Field | Value |
|---|---|
| Action ID | sim-dune-get-defi-positions |
| Category | Blockchain Data |
| Connector | Not required |
| Requires gas | No |
| Funds movement | None declared |
| Tags | sim-dune, blockchain, wallet, defi, lending, borrowing, liquidity, staking, farming, aave, compound, uniswap |
Payload Schema
| Field | Type | Required | Description |
|---|---|---|---|
address | string | Yes | Wallet address to get DeFi positions for |
chainIds | array | No | Chain IDs to query (optional, defaults to all supported chains) |
filterSpamTokens | boolean | No | Post-process results through the B3OS token filter service to remove spam and low-liquidity tokens. Default: true |
Result Schema
| Field | Type | Required | Description |
|---|---|---|---|
address | string | Yes | Wallet address queried |
positions | array | Yes | DeFi positions across protocols |
totalValueUsd | number | No | Total value of all positions in USD |
warnings | array | No | Any warnings from the provider |
Examples
json{ "type": "sim-dune-get-defi-positions", "payload": { "address": "0x0000000000000000000000000000000000000000" }, "children": []}
bashcurl -X POST "https://api.b3os.org/v1/actions/sim-dune-get-defi-positions/test" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "inputs": { "address": "0x0000000000000000000000000000000000000000" }}'
Payload fields can use workflow expressions such as {{$trigger.body.amount}}, {{$nodes.fetch.result.price}}, and {{$props.asset}} when the value should come from a trigger, prior node, or reusable workflow prop.
