Get wallet balances directly using Para’s built-in balance methods
import { useWalletBalance } from '@getpara/react-sdk'; const { data: balance, isLoading, error } = useWalletBalance(); // Balance is returned as a string in wei (for EVM) console.log(balance); // "1000000000000000000" (1 ETH in wei)
import { useWalletBalance } from '@getpara/react-sdk'; const { data: balance } = useWalletBalance({ walletId: 'wallet_123' }); console.log(balance); // Balance in wei
import { useWalletBalance } from '@getpara/react-sdk'; const { data: balance } = useWalletBalance({ walletId: 'external_wallet_id', rpcUrl: 'https://mainnet.infura.io/v3/YOUR_KEY' }); console.log(balance); // Balance from external RPC
null