Options
All
  • Public
  • Public/Protected
  • All
Menu

Create a new instance of an Abstract Signer

A signer is required by design to have the following props: provider, getAddress, signMessage and sendTransaction

See more: https://docs.ethers.io/ethers.js/html/api-wallet.html#signer-api

class

EthersSigner

extends

Signer

param

A purser instantiated wallet

param

A provieder, most likely instantiated from Etherscan

The above parameters are sent in as props of an object.

returns

A new instance of the class containing the expected props

Hierarchy

  • Signer
    • EthersSigner

Index

Constructors

constructor

Properties

provider

provider: Provider

Private purserWallet

purserWallet: PurserWallet

Methods

getAddress

  • getAddress(): Promise<string>

Private getChainId

  • getChainId(): Promise<number>

Private getGasLimit

  • getGasLimit(tx: TransactionRequest): Promise<BigNumber>

Private getGasPrice

  • getGasPrice(): Promise<BigNumber>

Private getNonce

  • getNonce(): Promise<number>

sendTransaction

  • sendTransaction(tx: TransactionRequest): Promise<TransactionResponse>

signMessage

  • signMessage(message: string): Promise<string>

Static isSigner

  • isSigner(value: any): value is Signer
  • Parameters

    • value: any

    Returns value is Signer

Generated using TypeDoc