Socket
Book a DemoInstallSign in
Socket

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

Package Overview
Dependencies
Maintainers
7
Versions
415
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.

6.6.1-beta.1
beta-wrappedkeys
Source
npmnpm
Version published
Weekly downloads
3.7K
-28.66%
Maintainers
7
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 LitJsSdkNodeJs.LitNodeClientNodeJs({
  litNetwork: 'serrano',
  defaultAuthCallback: checkAndSignAuthMessage,
});

await client.connect();

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

Keywords

library

FAQs

Package last updated on 25 Sep 2024

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

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.