Skip to main content

Class: Signer

helpers.Signer

Constructors

constructor

new Signer()

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:30

Properties

_isSigner

Readonly _isSigner: boolean

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:29


provider

Optional Readonly provider: Provider

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:24

Methods

_checkProvider

_checkProvider(operation?): void

Parameters

NameType
operation?string

Returns

void

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:42


call

call(transaction, blockTag?): Promise<string>

Parameters

NameType
transactionDeferrable<TransactionRequest>
blockTag?BlockTag

Returns

Promise<string>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:34


checkTransaction

checkTransaction(transaction): Deferrable<TransactionRequest>

Parameters

NameType
transactionDeferrable<TransactionRequest>

Returns

Deferrable<TransactionRequest>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:40


connect

Abstract connect(provider): Signer

Parameters

NameType
providerProvider

Returns

Signer

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:28


estimateGas

estimateGas(transaction): Promise<BigNumber>

Parameters

NameType
transactionDeferrable<TransactionRequest>

Returns

Promise<BigNumber>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:33


getAddress

Abstract getAddress(): Promise<string>

Returns

Promise<string>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:25


getBalance

getBalance(blockTag?): Promise<BigNumber>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<BigNumber>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:31


getChainId

getChainId(): Promise<number>

Returns

Promise<number>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:36


getFeeData

getFeeData(): Promise<FeeData>

Returns

Promise<FeeData>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:38


getGasPrice

getGasPrice(): Promise<BigNumber>

Returns

Promise<BigNumber>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:37


getTransactionCount

getTransactionCount(blockTag?): Promise<number>

Parameters

NameType
blockTag?BlockTag

Returns

Promise<number>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:32


populateTransaction

populateTransaction(transaction): Promise<TransactionRequest>

Parameters

NameType
transactionDeferrable<TransactionRequest>

Returns

Promise<TransactionRequest>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:41


resolveName

resolveName(name): Promise<string>

Parameters

NameType
namestring

Returns

Promise<string>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:39


sendTransaction

sendTransaction(transaction): Promise<TransactionResponse>

Parameters

NameType
transactionDeferrable<TransactionRequest>

Returns

Promise<TransactionResponse>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:35


signMessage

Abstract signMessage(message): Promise<string>

Parameters

NameType
messagestring | Bytes

Returns

Promise<string>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:26


signTransaction

Abstract signTransaction(transaction): Promise<string>

Parameters

NameType
transactionDeferrable<TransactionRequest>

Returns

Promise<string>

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:27


isSigner

Static isSigner(value): value is Signer

Parameters

NameType
valueany

Returns

value is Signer

Defined in

@ethersproject/abstract-signer/lib/index.d.ts:43