UNPKG

enclave-wallet-sdk

Version:

A simple enclave wallet SDK for React applications

55 lines (38 loc) 808 B
# Wallet SDK A simple wallet SDK for React applications that provides a modal interface for wallet connections. ## Installation ```bash npm install wallet-sdk ``` ## Usage ```jsx import WalletSDK from "wallet-sdk"; // Initialize the SDK const walletSDK = new WalletSDK(); // Open the wallet modal walletSDK.openWalletModal(); ``` ## Example ```jsx import React from "react"; import WalletSDK from "wallet-sdk"; function App() { const handleConnectWallet = () => { const walletSDK = new WalletSDK(); walletSDK.openWalletModal(); }; return ( <div> <button onClick={handleConnectWallet}>Connect Wallet</button> </div> ); } export default App; ``` ## Features - Simple modal interface - Easy to integrate - TypeScript support - React 16.8+ compatible ## License MIT