Skip to main content

Class: Signer

Constructors

constructor

new Signer()

Properties

_isSigner

Readonly _isSigner: boolean


provider

Optional Readonly provider: Provider

Methods

_checkProvider

_checkProvider(operation?): void

Parameters

NameType
operation?string

Returns

void


call

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

Parameters

NameType
transactionDeferrable\<TransactionRequest>
blockTag?BlockTag

Returns

Promise\<string>


checkTransaction

checkTransaction(transaction): Deferrable\<TransactionRequest>

Parameters

NameType
transactionDeferrable\<TransactionRequest>

Returns

Deferrable\<TransactionRequest>


connect

Abstract connect(provider): Signer

Parameters

NameType
providerProvider

Returns

Signer


estimateGas

estimateGas(transaction): Promise\<BigNumber>

Parameters

NameType
transactionDeferrable\<TransactionRequest>

Returns

Promise\<BigNumber>


getAddress

Abstract getAddress(): Promise\<string>

Returns

Promise\<string>


getBalance

getBalance(blockTag?): Promise\<BigNumber>

Parameters

NameType
blockTag?BlockTag

Returns

Promise\<BigNumber>


getChainId

getChainId(): Promise\<number>

Returns

Promise\<number>


getFeeData

getFeeData(): Promise\<FeeData>

Returns

Promise\<FeeData>


getGasPrice

getGasPrice(): Promise\<BigNumber>

Returns

Promise\<BigNumber>


getTransactionCount

getTransactionCount(blockTag?): Promise\<number>

Parameters

NameType
blockTag?BlockTag

Returns

Promise\<number>


populateTransaction

populateTransaction(transaction): Promise\<TransactionRequest>

Parameters

NameType
transactionDeferrable\<TransactionRequest>

Returns

Promise\<TransactionRequest>


resolveName

resolveName(name): Promise\<string>

Parameters

NameType
namestring

Returns

Promise\<string>


sendTransaction

sendTransaction(transaction): Promise\<TransactionResponse>

Parameters

NameType
transactionDeferrable\<TransactionRequest>

Returns

Promise\<TransactionResponse>


signMessage

Abstract signMessage(message): Promise\<string>

Parameters

NameType
messagestring | Bytes

Returns

Promise\<string>


signTransaction

Abstract signTransaction(transaction): Promise\<string>

Parameters

NameType
transactionDeferrable\<TransactionRequest>

Returns

Promise\<string>


isSigner

Static isSigner(value): value is Signer

Parameters

NameType
valueany

Returns

value is Signer