SDK Reference
Methods
ConnectLit

connectLit

Will get the user to connect to Lit Protocol. It can be used if you passed false to the connect or connect_v2 functions for the lit parameter.

How to use?

const res = await orbis.connectLit(provider);

Parameters

  • provider - By default it try to use window.ethereum. Can be used to pass any provider.

Returns

{
  status: 200,
  result: "Generated Lit signature for address: 0x..."
}

Examples

Connect to Lit using Metamask

/**
* Will generate a new Metamask message to be signed
* to generate the Lit private account locally.
*/
orbis.connectLit(window.ethereum);