This document tracks breaking changes between stellar-hooks releases and how to update your code.
For a guide on migrating from raw @stellar/stellar-sdk code to stellar-hooks, see docs/guides/migration-guide.md.
This is the first public release of stellar-hooks. There are no prior versions to migrate from.
<StellarProvider>withmainnet,testnet,futurenet, andcustomnetwork configs- Core hooks:
useFreighter,useStellarAccount,useStellarBalance,useSorobanContract,useTransaction,useLedgerEntry - Payment hooks:
usePayment,usePathPayment - Transaction helpers:
useAccountFlags,useAccountMerge,useBumpSequence,useInflation,useManageData,useTrustline,useCreateAccount - DEX hooks:
useTrade,useStellarOffers,useOfferBook - Discovery hooks:
useStellarToml,useAssetMetadata,useContractEvents,useEffects,useOperations,useAssets - Wallet adapters:
useWalletsKit,useWalletConnect - Branded types:
StellarPublicKey,StellarContractId,StellarXdrString,StellarTxHash,StellarAssetIssuer - Zod schemas for runtime validation of Horizon and Soroban RPC responses