Functions

createLitClient({ network })

Parameters

param.network
NagaNetworkModule
required
The network to connect to.
import { nagaDev } from "@lit-protocol/networks";
const litClient = await createLitClient({ network: nagaDev });

Returns

litClient
object
Complete litClient object with all returned methods.

chain.raw.pkpSign

Signs arbitrary bytes with a PKP using the specified signing scheme on the chosen chain.

Parameters

params
object

Returns

result
LitNodeSignature Object

executeJs

Execute a Lit Action (JS) on the network.

Parameters

Request
object

Returns

result
ExecuteJsResponse Object

encrypt

Encrypt data with access control conditions using BLS.

Parameters

Request
object

Returns

result
EncryptResponse Object

decrypt

Decrypt data previously encrypted with access control conditions.

Parameters

Request
object

Returns

result
DecryptResponse Object

mintWithEoa

Mint a PKP using an EOA.

Parameters

Request
object

Returns

result
AuthServerTx<PKPData>

mintWithAuth

Mint a PKP using an authentication method.

Parameters

Request
object

Returns

result
AuthServerTx<PKPData>

mintWithCustomAuth

Mint a PKP using custom authentication (Lit Action validator or IPFS CID).

Parameters

Request
object

Returns

result
object

authService.mintWithAuth

Mint a PKP via the Auth Service. Parameters and returns mirror mintWithAuth.

Parameters

Request
object

Returns

result
AuthServerTx<PKPData>

getPKPPermissionsManager

Create a PKP permissions manager instance.

Parameters

Request
object

Returns

result
PKPPermissionsManager Object

getPaymentManager

Get a Payment Manager for Ledger contract operations.

Parameters

Request
object

Returns

result
PaymentManager Object

viewPKPPermissions

View current permissions context for a PKP.

Parameters

pkpIdentifier
{ tokenId?: string; pubkey?: string; address?: string }
required

Returns

result
object

viewPKPsByAddress

List PKPs owned by an address.

Parameters

Request
object

Returns

result
PaginatedPKPsResponse

getPkpViemAccount

Create a Viem-compatible account backed by a PKP.

Parameters

Request
object

Returns

result
Viem Account Object

Returns

result
LitNodeSignature Object

getChainConfig

Returns the chain configuration for the current network.

Parameters

none

Returns

result
ChainConfig

disconnect

Stop background state updates and release resources.

Parameters

none

Returns

void