@nexuspay/sdk
Version:
🚀 Ultra-simple cross-chain wallet SDK - Initialize with just projectName + apiKey. Bulletproof gasless transactions across EVM/SVM chains with ANY social identifier support
15 lines (14 loc) • 456 B
JavaScript
/**
* useNexus Hook - Ultimate Cross-Chain Wallet Operations
* Provides access to all SDK features with React state management
*/
import { useContext } from 'react';
import { NexusContext } from '../providers/NexusProvider.js';
export const useNexus = () => {
const context = useContext(NexusContext);
if (!context) {
throw new Error('useNexus must be used within a NexusProvider');
}
return context;
};
export default useNexus;