Implements

Constructors

Properties

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

Accessors

Methods

  • Parameters

    • domain: TypedDataDomain
    • types: Record<string, TypedDataField[]>
    • value: Record<string, any>

    Returns Promise<string>

  • Parameters

    • transaction: Deferrable<TransactionRequest>
    • blockTag: BlockTag | Promise<BlockTag> = 'latest'

    Returns Promise<string>

  • Parameters

    • password: string | Bytes
    • Optionaloptions: ProgressCallback | EncryptOptions
    • OptionalprogressCallback: ProgressCallback

    Returns Promise<string>

  • Runs the specified Lit action with the given parameters.

    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>

    • A Promise that resolves with the signature returned by the Lit action.
    • 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.
  • Sign the provided data with the PKP private key.

    Parameters

    • toSign: Uint8Array

      The data to be signed.

    Returns Promise<SigResponse>

    • A Promise that resolves with the signature of the provided data.
    • 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.
  • Static methods to create Wallet instances.

    Parameters

    • Optionaloptions: {
          extraEntropy?: Uint8Array;
          locale?: Wordlist;
          path?: string;
      }
      • OptionalextraEntropy?: Uint8Array
      • Optionallocale?: Wordlist
      • Optionalpath?: string

    Returns Wallet

  • Parameters

    • json: string
    • password: string | Bytes
    • OptionalprogressCallback: ProgressCallback

    Returns Promise<Wallet>