UNPKG

@enclavemoney/enclave-wallet-sdk

Version:

A simple enclave wallet SDK for React applications

50 lines (33 loc) 1.65 kB
# Enclave Wallet SDK A simple enclave wallet SDK for React applications that provides secure wallet functionality with passkey authentication and Gmail login support. ## Features - 🔐 **Passkey Authentication**: Secure authentication using device biometrics or security keys - 📧 **Gmail Login**: Optional Gmail authentication using Firebase - 💰 **Crypto Wallet**: Full wallet functionality for managing crypto assets - 🔄 **Token Swapping**: Built-in token swap capabilities - 💸 **Transfers**: Send crypto to other addresses - 📊 **Activity Tracking**: View transaction history and status - 📱 **Mobile Responsive**: Works seamlessly on mobile devices ## Installation ```bash npm install @enclavemoney/enclave-wallet-sdk ``` ## Quick Start ```javascript import { WalletProvider } from "@enclavemoney/enclave-wallet-sdk"; function App() { return ( <WalletProvider sdkKey="your-enclave-sdk-key"> {/* Your app components */} </WalletProvider> ); } ``` ## Gmail Login Setup To enable Gmail login functionality, you need to configure Firebase. See [FIREBASE_SETUP.md](./FIREBASE_SETUP.md) for detailed setup instructions. ## Usage The SDK provides a complete wallet solution that can be integrated into any React application. Users can authenticate using either passkeys or Gmail, and then access full wallet functionality including viewing balances, swapping tokens, and sending transfers. ## Documentation For detailed setup instructions including Firebase configuration for Gmail login, see [FIREBASE_SETUP.md](./FIREBASE_SETUP.md). ## Support For support and questions, please contact the Enclave team.