Hooks
Overview

Hooks

wankmi provides hooks across three categories:

Wallet

HookDescription
useWalletConnect, disconnect, and access the active wallet
useConnectionAccess the underlying Connection object

Data

HookDescription
useSolBalanceFetch the SOL balance of an address
useTokenAccountsFetch all SPL token accounts for an address
useMintFetch mint info for a token mint address

Transactions

HookDescription
useSendTransactionSign and send a transaction
useSignMessageSign an arbitrary message with the connected wallet