@lit-protocol/pkp-walletconnect
TypeScript icon, indicating that this package has built-in type declarations

7.1.3 • Public • Published

PKP WalletConnect

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.

Installation

yarn add @lit-protocol/pkp-walletconnect

Quick Start

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);
});

Key Features

  • WalletConnect v2.0 integration
  • dApp pairing management
  • Session proposal handling
  • Request/response management
  • Multi-chain support
  • Event handling system

Core Functionality

  • 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.

Readme

Keywords

Package Sidebar

Install

npm i @lit-protocol/pkp-walletconnect

Weekly Downloads

21

Version

7.1.3

License

MIT

Unpacked Size

48 kB

Total Files

8

Last publish

Collaborators

  • glitch003
  • adarsh-kumar28
  • websaam
  • hwrdtm
  • famura
  • maximushaximus
  • spacesailor
  • awisniew