Hooks
React hooks for querying Stellar network data and managing wallet state.
Blux provides two categories of React hooks: hooks for managing wallet state (authentication, network, transactions) and hooks for querying Stellar network data (accounts, balances, trades, and more).
All data-fetching hooks are built on TanStack Query and support the full suite of query options including caching, background refetching, pagination, and dependent queries.
useAccount
Fetch details of a Stellar account in your React app using the Blux SDK.
useAccounts
Fetch a filtered list of Stellar accounts in your React app using the Blux SDK.
useAssets
Fetch a paginated list of Stellar assets in your React app using the Blux SDK.
useBalances
Fetch the balances of a Stellar account in your React app using the Blux SDK.
useClaimableBalances
Fetch a paginated list of claimable balances in your React app using the Blux SDK.
useEffects
Fetch a paginated list of Stellar effects in your React app using the Blux SDK.
useLedgers
Fetch a paginated list of Stellar ledgers in your React app using the Blux SDK.
useLiquidityPools
Fetch a paginated list of Stellar liquidity pools in your React app using the Blux SDK.
useNetwork
Retrieve the currently active network in your React app using the Blux SDK.
useOffers
Fetch a paginated list of Stellar offers in your React app using the Blux SDK.
useOperations
Fetch a paginated list of Stellar operations in your React app using the Blux SDK.
useOrderbook
Fetch orderbook data for an asset pair in your React app using the Blux SDK.
usePayments
Fetch a paginated list of Stellar payments in your React app using the Blux SDK.
useStrictReceivePaths
Fetch strict receive payment paths in your React app using the Blux SDK.
useStrictSendPaths
Fetch strict send payment paths in your React app using the Blux SDK.
useSwitchNetwork
Change the active network in your React app using the Blux SDK.
useTradeAggregation
Fetch aggregated trade data for an asset pair in your React app using the Blux SDK.
useTrades
Fetch a paginated list of Stellar trades in your React app using the Blux SDK.
useTransactions
Fetch a paginated list of Stellar transactions in your React app using the Blux SDK.