• Retrieves detailed information about a PKP (Programmable Key Pair) using its Ethereum address. This function queries the PubkeyRouter contract to fetch the PKP's token ID and public key.

    Parameters

    • pkpEthAddress: string

      The Ethereum address associated with the PKP.

    Returns Promise<{
        ethAddress: string;
        publicKey: any;
        tokenId: any;
    }>

    A promise that resolves to an object containing:

    • tokenId: The PKP's token ID as a string
    • ethAddress: The input Ethereum address
    • publicKey: The PKP's public key

    Throws

    Error if the current Lit network is not supported.