Solana App Kit home page
Search for anything in the Solana App Kit docs
⌘K
Introduction
Introduction
Getting Started
Setup Guide
Repository Structure
Using LLMs
Vibe Coding setup
Modules
Modules Overview
Embedded wallets Module
Data Module
Swap Module
NFT Module
Meteora Module
Pumpfun Module
MoonPay Module
Raydium Module
SendAI Module
TokenMill Module
Mercuryo Module
Server
Server Overview
Solana Service
Solana App Kit home page
Search for anything in the Solana App Kit docs
⌘K
Search...
Navigation
Hooks
Copy page
Copy page
src/hooks
Custom React hooks to abstract logic across the application.
Available Hooks
🔐 useAuth.ts
Central login logic for connecting via Privy, Dynamic, or Turnkey:
Dispatches Redux actions for
loginSuccess
or
logoutSuccess
Manages authentication state
🚀 usePumpfun.ts
Wraps Pump.fun’s token functions:
Buy token functionality
Sell token functionality
Launch token functionality
Error handling
💱 useTradeTransaction.ts
Example hooking into transaction processing:
Jito integration
Priority fee transactions
Replicates Jupiter trades if needed
🔄 useReduxHooks.ts
Shorthand for typed Redux hooks:
useAppSelector
useAppDispatch
🖼️ useFetchNFTs.ts
NFT management:
Retrieves the user’s NFTs from Tensor API
Handles loading states
Manages error states
🧭 useAppNavigation.ts
Navigation utilities:
Creates a navigation ref for global navigation
Provides typed usage of stack/tab navigation
Was this page helpful?
Yes
No
On this page
src/hooks
Available Hooks
🔐 useAuth.ts
🚀 usePumpfun.ts
💱 useTradeTransaction.ts
🔄 useReduxHooks.ts
🖼️ useFetchNFTs.ts
🧭 useAppNavigation.ts
Assistant
Responses are generated using AI and may contain mistakes.