A WalletConnect integration for Lit Protocol's PKP (Programmable Key Pair) system, enabling secure dApp connections and session management. This package wraps WalletConnect's Web3Wallet to provide seamless PKP integration with decentralized applications.
yarn add @lit-protocol/pkp-walletconnect
import { PKPWalletConnect } from '@lit-protocol/pkp-walletconnect';
// Initialize WalletConnect client
const client = new PKPWalletConnect();
// Handle session proposals
client.on('session_proposal', async (proposal) => {
const approved = await client.approveSession(proposal);
});
// Handle session requests
client.on('session_request', async (request) => {
const response = await client.respondToRequest(request);
});
- WalletConnect v2.0 integration
- dApp pairing management
- Session proposal handling
- Request/response management
- Multi-chain support
- Event handling system
- Session Management: Handle dApp connections
- Request Processing: Respond to session requests
- Pairing: Manage PKP-dApp pairings
- Event Handling: Subscribe to WalletConnect events
- Chain Configuration: Support multiple blockchains
For detailed API documentation, visit the API reference.