ReactHooks
React Hooks
React hooks for accessing dApp Kit state and actions in Sui applications.
The @mysten/dapp-kit-react package provides a set of hooks for interacting with wallets and the
Sui blockchain in React applications.
All dApp Kit hooks must be used within components that are descendants of
DAppKitProvider. Using them outside will result in an
error.
Available hooks
useDAppKit- Access the dApp Kit instance for calling actions directlyuseCurrentAccount- Get the currently selected accountuseCurrentClient- Get the blockchain client for the current networkuseCurrentNetwork- Get the currently selected networkuseCurrentWallet- Get the currently connected walletuseWalletConnection- Get wallet connection status and actionsuseWallets- Get all available wallets