Docs
/Hooks
/useXRPLBalances()
useXRPLBalances()
More detailed explanation and examples coming soon!
Check out the Storybook (via the link in the navbar) so see live examples of @xrpl-components/react
in action.
import { useXRPLBalances } from '@xrpl-components/react/hooks';
export function YourComponent() {
const { data, error } = useXRPLBalances('rG1QQv2nh2gr7RCZ1P8YYcBUKCCN633jCn');
return <div>{/* ... */}</div>;
}