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

7.1.1 • Public • Published

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

/@lit-protocol/lit-node-client/

    Package Sidebar

    Install

    npm i @lit-protocol/lit-node-client

    Weekly Downloads

    2,970

    Version

    7.1.1

    License

    MIT

    Unpacked Size

    8.09 kB

    Total Files

    8

    Last publish

    Collaborators

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