Skip to main content

Function

batchGeneratePrivateKeys(params)
Runs multiple wrapped-key actions in one request, optionally signing messages as part of the batch.

Parameters

params.pkpSessionSigs
SessionSigsMap
required
params.litClient
LitClient
required
params.actions
GeneratePrivateKeyAction[]
required
Each action may specify network, generateKeyParams.memo, and optional signMessageParams.messageToSign.
params.userMaxPrice
bigint
Optional executeJs price cap (applies to the whole batch).

Returns

result
BatchGeneratePrivateKeysResult

Example

const { results } = await wrappedKeysApi.batchGeneratePrivateKeys({
  pkpSessionSigs,
  litClient,
  actions: [
    { network: 'evm', generateKeyParams: { memo: 'key-0' } },
  ],
});