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

7.1.1 • Public • Published

Getting Started

This package provides a Node.js-specific implementation of the Lit Protocol client, enabling server-side applications to interact with the Lit network. It offers optimized Node.js performance while maintaining all core Lit Protocol functionality, excluding browser-specific authentication which can be manually added if needed.

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

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

3,623

Version

7.1.1

License

MIT

Unpacked Size

184 kB

Total Files

44

Last publish

Collaborators

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