For new React apps, we recommend the JavaScript SDK with React Hooks (@dynamic-labs-sdk/react-hooks) instead of the legacy React SDK documented here. The JS SDK comes with many benefits such as a much smaller bundle size and other optimizations. Use the React quickstart (JavaScript SDK) to get started.
useTokenBalances - A React hook that fetches token balances for an account on a specified network. Returns token balances with optional fiat prices and native balance inclusion.useMultichainTokenBalances - A React hook that fetches token balances across multiple chains and networks for linked wallet addresses.