Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Hook for retrieving the balance of the selected wallet
useWalletBalance
import { useWalletBalance } from "@getpara/react-sdk";
function WalletBalance() { const { data: balance, isLoading, error } = useWalletBalance(); if (isLoading) return <div>Loading balance...</div>; if (error) return <div>Error loading balance</div>; if (!balance) { return <div>No balance available</div>; } return ( <div> <p>Balance: {balance} ETH</p> </div> ); }