JSPM

@lit-protocol/lit-node-client

7.1.1-dev-6
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 5182
  • Score
    100M100P100Q133902F
  • License MIT

Package Exports

  • @lit-protocol/lit-node-client
  • @lit-protocol/lit-node-client/src/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@lit-protocol/lit-node-client) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Lit Node Client

This module is the main interface for interacting with the Lit Protocol network. It provides a robust client implementation that handles network communication, authentication, and node interactions in both browser and Node.js environments.

Installation

yarn add @lit-protocol/lit-node-client

Quick Start

import { LitNodeClient } from '@lit-protocol/lit-node-client';

// Initialize the client
const client = new LitNodeClient({
  litNetwork: 'datil',
});

// Connect to the network
await client.connect();

Key Features

  • Seamless authentication with Lit nodes
  • Default authentication callback using checkAndSignAuthMessage
  • Cross-platform support (browser and Node.js)
  • Network connection management
  • Secure node communication
  • Automatic request handling and retries