lend and deposit action needs a marketId.
React hooks
UseuseEarnMarkets, useEarnProviders, and useEarnBalances inside a React tree wrapped with TrailsProvider:
useEarnMarkets filters
Each
EarnMarket exposes id, rewardRate, statistics.tvlUsd, metadata.*, providerId, and more.
Use these hooks in browser apps to discover supported markets, providers, and the user’s existing earn positions before building an action list.