Skip to main content

Function

storeEncryptedKeyBatch(params)
Stores multiple encrypted keys in a single request.

Parameters

params.pkpSessionSigs
SessionSigsMap
required
params.litClient
LitClient
required
params.keyBatch
Array<StoredKeyData-like>
required
Array of objects containing ciphertext, dataToEncryptHash, publicKey, keyType, and memo.
params.userMaxPrice
bigint
Optional price cap for the Lit Action.

Returns

result
StoreEncryptedKeyBatchResult

Example

const { ids } = await wrappedKeysApi.storeEncryptedKeyBatch({
  pkpSessionSigs,
  litClient,
  keyBatch,
});