Signs using in memory key store.

Hierarchy

Constructors

Properties

keyStore: KeyStore

Methods

  • Creates a public key for the account given

    Parameters

    • accountId: string

      The NEAR account to assign a public key to

    • networkId: string

      The targeted network. (ex. default, betanet, etc…)

    Returns Promise<PublicKey>

  • Gets the existing public key for a given account

    Parameters

    • Optional accountId: string

      The NEAR account to assign a public key to

    • Optional networkId: string

      The targeted network. (ex. default, betanet, etc…)

    Returns Promise<PublicKey>

    Returns the public key or null if not found

  • Parameters

    • message: Uint8Array

      A message to be signed, typically a serialized transaction

    • Optional accountId: string

      the NEAR account signing the message

    • Optional networkId: string

      The targeted network. (ex. default, betanet, etc…)

    Returns Promise<Signature>

  • Creates a single account Signer instance with account, network and keyPair provided.

    Intended to be useful for temporary keys (e.g. claiming a Linkdrop).

    Parameters

    • networkId: string

      The targeted network. (ex. default, betanet, etc…)

    • accountId: string

      The NEAR account to assign the key pair to

    • keyPair: KeyPair

      The keyPair to use for signing

    Returns Promise<Signer>

Generated using TypeDoc