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

5.0.0 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

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

Weekly Downloads

4,377

Version

5.0.0

License

MIT

Unpacked Size

181 kB

Total Files

8

Last publish

Collaborators

  • maximushaximus
  • famura
  • josh-long
  • hwrdtm
  • websaam
  • adarsh-kumar28
  • glitch003