Hooks
useWallet()
The primary hook for accessing wallet state and methods.Returns
Whether a wallet is currently connected
The connected walletβs public key, or null if not connected
Function to disconnect the current wallet
Whether a wallet connection is currently in progress
The currently connected wallet adapter instance
Example Usage
useConnection()
Hook for accessing the Solana connection instance.Returns
The Solana connection instance for making RPC calls
useWalletModal()
Hook for controlling the wallet selection modal.Returns
Whether the wallet modal is currently visible
Function to show or hide the wallet modal
Example Usage
Components
MoongateConnectButton
The main connect button component (recommended for most use cases).Props
Custom button text or content
Additional CSS classes to apply
Inline styles to apply
Example Usage
WalletConnectButton
Individual wallet connect button for specific wallets.Props
Name of the specific wallet to connect to
Custom button content
Example Usage
π± Mobile Considerations
The SDK is fully responsive and mobile-optimized:- Touch-friendly wallet selection
- Mobile wallet deep linking
- Responsive modal sizing
- iOS/Android wallet app integration
π Need Help?
- π§ Email: amen@moongate.one or praneet@moongate.one
- π¬ Telegram: @and_its_praneet
- π Issues: Message us on web.moongate.one