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.
Used to fetch the token balances of an account on a specified network. The default behavior is to return the token balances of the primary account on the current network, but optionally the account, network, includeFiat and includeNativeBalance can be specified.Chain support includes 66 EVM networks, Solana Mainnet and Devnet, Eclipse Mainnet and Bitcoin Ruins. You can checkout the full list here
This will return all tokens with at least 10,000 USD in liquidity unless using filterSpamTokens: false in the hook parameters. This applies to total token liquidity.
Return these contracts, even when originally filtered
Optionally, you can pass an object with the account address and network id specified. Additionally, you can pass an array of token addresses to filter the results.