Skip to main content
Get the total TVL (Total Value Locked) across all smart wallets created via your SDK API key, with per-wallet breakdown and position details.
This method does not require a wallet connection - only your SDK API key is needed.

Signature

Returns

Total TVL across all allowed wallets with detailed breakdown

Return Type

All monetary fields (totalTvl, totalVolume, tvl, and amount) are returned in USD. Balances are converted server-side before aggregation (USDC/USDT at 1:1, WETH/cbETH via Chainlink ETH price, WBTC/cbBTC via Chainlink BTC price).assetType identifies the underlying deposited asset — it does not change the unit of amount. Positions can be filtered with ?assetType=eth, but returned amounts remain in USD.

Example

Performance

This method uses efficient server-side calculation:
  • Single API call regardless of wallet count
  • Fast database query with proper indexes
  • Optimized for large numbers of wallets (100+)
  • No N+1 query issues

Use Cases

  • B2B Dashboards: Display total TVL across all user wallets
  • Analytics: Track TVL growth over time
  • Monitoring: Alert when TVL drops below threshold
  • Reporting: Generate reports on user activity and balances
  • Billing: Calculate usage-based pricing based on TVL

Example Use Cases

Dashboard Summary

TVL Monitoring

TVL by Chain Analysis

Notes

  • Only returns data for wallets created via the authenticated SDK API key
  • TVL is calculated from active positions only
  • Volume is calculated from rebalancing activity
  • All amounts (totalTvl, totalVolume, tvl, amount) are in USD, converted server-side from the underlying asset
  • assetType indicates the deposited asset (e.g. usdc, eth, btc) — amounts are still in USD
  • Optional ?assetType=eth filter limits returned positions; amounts remain in USD
  • Wallets with no positions have 0 TVL
  • Position breakdown includes chain, protocol, amount (USD), and assetType
  • Results are sorted by natural order (not by TVL - sort client-side if needed)