@lit-protocol/e2e
Version:
Lit Protocol E2E testing package for running comprehensive integration tests
15 lines (14 loc) • 718 B
TypeScript
import type { AuthData, PKPData } from '@lit-protocol/schemas';
import type { PrivateKeyAccount } from 'viem/accounts';
import { LitClientInstance } from '../types';
/**
* Gets an existing PKP or creates a new one if none exists
*
* @param litClient - The Lit Protocol client instance
* @param authData - Authentication data for the account
* @param account - The account to associate with the PKP
* @param storagePath - Local storage path for PKP tokens
* @param networkName - Name of the network being used
* @returns Promise<PKP> - The existing or newly created PKP
*/
export declare const getOrCreatePkp: (litClient: LitClientInstance, authData: AuthData, account: PrivateKeyAccount) => Promise<PKPData>;