Helpers
The SDK includes optional helper utilities that are tree-shakeable — import only what you need. These are not required for basic SDK usage but simplify common integration tasks.
WalletConnector
Detects and connects to Solana wallet browser extensions (Phantom, Solflare, Backpack, Coinbase, Trust).
Detect and Connect
Detect Available Wallets
ConnectedWallet Interface
Configuration
React Hook
TransactionPoller
Polls Solana transactions for confirmation with exponential backoff.
Wait for Confirmation
TransactionStatus
PollingOptions
TransactionMonitor
For monitoring multiple transactions with structured callbacks:
Development-only utilities for debugging and testing.
Enable Debug Mode
Mock Wallet
Create a mock wallet for testing without a real browser extension:
Test Session Key
Generic metric recorder for tracking custom performance data:
DevTools only work in development environments. Calling DevTools.enableDebugMode() in production is a no-op.
Tree Shaking
All helpers are independently importable. If you only use WalletConnector, the TransactionPoller and DevTools code is not included in your bundle: