enclave-wallet-sdk
v1.0.19
Published
A simple enclave wallet SDK for React applications
Downloads
44
Maintainers
Readme
Wallet SDK
A simple wallet SDK for React applications that provides a modal interface for wallet connections.
Installation
npm install wallet-sdkUsage
import WalletSDK from "wallet-sdk";
// Initialize the SDK
const walletSDK = new WalletSDK();
// Open the wallet modal
walletSDK.openWalletModal();Example
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
