UNPKG

@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

46 lines (45 loc) • 1.19 kB
/** * NexusSDK React Components & Hooks * * Ultimate flexible React integration for cross-chain wallet infrastructure * * @example * ```tsx * import { NexusProvider, WalletConnect, useNexus } from '@nexusplatform/sdk/react'; * * function App() { * return ( * <NexusProvider config={{ * apiKey: 'your_api_key', * enableBridging: true, * enableGasless: true * }}> * <MyWalletApp /> * </NexusProvider> * ); * } * * function MyWalletApp() { * const { createWallet, bridgeTokens, swapTokens } = useNexus(); * * return ( * <div> * <WalletConnect * chains={['ethereum', 'arbitrum', 'solana']} * allowedSocialTypes={['email', 'twitter', 'gameId', 'nftHolder']} * customSocialTypes={[ * { type: 'nftHolder', label: 'NFT Holder', placeholder: 'Enter collection' } * ]} * theme="auto" * /> * </div> * ); * } * ``` */ // Provider and Context export { NexusProvider, NexusContext } from './providers/NexusProvider.js'; // Components export { WalletConnect } from './components/WalletConnect.js'; // Hooks export { useNexus } from './hooks/useNexus.js';