Skip to main content
Return value from useBalances hook

Properties

PropertyTypeDescription
balancesAccountBalancesDataComplete account balances including SOL and all tokens Null if not loaded or account not found
isLoadingbooleanWhether the query is currently loading for the first time
isErrorbooleanWhether the query encountered an error
errorErrorError object if query failed, null otherwise
refetch() => voidFunction to manually refetch balances
isRefetchingbooleanWhether data is being refetched in the background