Hierarchy

  • PKPEthersWallet

Implements

Constructors

Properties

_isSigner: boolean
address: string
chainId?: number
manualGasLimit?: string
manualGasPrice?: string
nonce?: string
provider: Provider

Accessors

Methods

  • Runs the specified Lit action with the given parameters.

    Returns

    • A Promise that resolves with the signature returned by the Lit action.

    Throws

    • Throws an error if pkpPubKey is not provided, if controllerAuthSig or controllerSessionSigs is not provided, if controllerSessionSigs is not an object, if executeJsArgs does not have either code or ipfsId, or if an error occurs during the execution of the Lit action.

    Parameters

    • toSign: Uint8Array

      The data to be signed by the Lit action.

    • sigName: string

      The name of the signature to be returned by the Lit action.

    Returns Promise<any>

  • Sign the provided data with the PKP private key.

    Returns

    • A Promise that resolves with the signature of the provided data.

    Throws

    • Throws an error if pkpPubKey is not provided, if controllerAuthSig or controllerSessionSigs is not provided, if controllerSessionSigs is not an object, or if an error occurs during the signing process.

    Parameters

    • toSign: Uint8Array

      The data to be signed.

    Returns Promise<SigResponse>

  • Static methods to create Wallet instances.

    Parameters

    • Optional options: {
          extraEntropy?: Uint8Array;
          locale?: Wordlist;
          path?: string;
      }
      • Optional extraEntropy?: Uint8Array
      • Optional locale?: Wordlist
      • Optional path?: string

    Returns Wallet

Generated using TypeDoc