Options
All
  • Public
  • Public/Protected
  • All
Menu

Class KeyStoreTransactionSigner

This is an implementation of TransactionSigner. It is used to sign transactions given a KeyStore from near-api-js.

A new KeyStoreTransactionSigner can be created from a NEAR WalletConnection or by using the constructor.

example
const transactionSigner = KeyStoreTransactionSigner.fromWallet(wallet)
example
const transactionSigner = new KeyStoreTransactionSigner({
  keyStore,
  signerId: "my-acct.testnet",
  networkId: "testnet",
})

Hierarchy

  • KeyStoreTransactionSigner

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private networkId

networkId: string

Private signer

signer: Signer

Private signerId

signerId: string

Methods

sign

Static fromAccount

  • Create an instance of KeyStoreTransactionSigner from a NEAR Account.

    Parameters

    • account: Account

    Returns KeyStoreTransactionSigner

Static fromWallet

  • Create an instance of KeyStoreTransactionSigner from a NEAR WalletConnection.

    Parameters

    • wallet: WalletConnection

    Returns KeyStoreTransactionSigner

Generated using TypeDoc