📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

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

Package Overview
Dependencies
Maintainers
4
Versions
405
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

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

This `LitNodeClientNodeJs` is created solely to run on Node.js.

2.1.67
Source
npm
Version published
Weekly downloads
3.3K
-23.64%
Maintainers
4
Weekly downloads
 
Created
Source

Getting Started

This LitNodeClientNodeJs is created solely to run on Node.js.

The usual checkAndSignAuthMessage is not included in this package, so you need to add it manually to the constructor if you decide to use it on a browser, or with any custom auth callback.


import * as LitJsSdkNodeJs from "@lit-protocol/lit-node-client-nodejs";
import { checkAndSignAuthMessage } from "@lit-protocol/auth-browser";

const client = new LitJsSdk.LitNodeClientNodeJs({
  litNetwork: "serrano",
  defaultAuthCallback: checkAndSignAuthMessage,
});

await client.connect();

const authSig = await checkAndSignAuthMessage({
    chain: "ethereum",
});

Keywords

library

FAQs

Package last updated on 15 Mar 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts