Class: Signer
Constructors
constructor
• new Signer()
Properties
_isSigner
• Readonly
_isSigner: boolean
provider
• Optional
Readonly
provider: Provider
Methods
_checkProvider
▸ _checkProvider(operation?
): void
Parameters
Name | Type |
---|---|
operation? | string |
Returns
void
call
▸ call(transaction
, blockTag?
): Promise
\<string
>
Parameters
Name | Type |
---|---|
transaction | Deferrable \<TransactionRequest > |
blockTag? | BlockTag |
Returns
Promise
\<string
>
checkTransaction
▸ checkTransaction(transaction
): Deferrable
\<TransactionRequest
>
Parameters
Name | Type |
---|---|
transaction | Deferrable \<TransactionRequest > |
Returns
Deferrable
\<TransactionRequest
>
connect
▸ Abstract
connect(provider
): Signer
Parameters
Name | Type |
---|---|
provider | Provider |
Returns
estimateGas
▸ estimateGas(transaction
): Promise
\<BigNumber
>
Parameters
Name | Type |
---|---|
transaction | Deferrable \<TransactionRequest > |
Returns
Promise
\<BigNumber
>
getAddress
▸ Abstract
getAddress(): Promise
\<string
>
Returns
Promise
\<string
>
getBalance
▸ getBalance(blockTag?
): Promise
\<BigNumber
>
Parameters
Name | Type |
---|---|
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
Name | Type |
---|---|
blockTag? | BlockTag |
Returns
Promise
\<number
>
populateTransaction
▸ populateTransaction(transaction
): Promise
\<TransactionRequest
>
Parameters
Name | Type |
---|---|
transaction | Deferrable \<TransactionRequest > |
Returns
Promise
\<TransactionRequest
>
resolveName
▸ resolveName(name
): Promise
\<string
>
Parameters
Name | Type |
---|---|
name | string |
Returns
Promise
\<string
>
sendTransaction
▸ sendTransaction(transaction
): Promise
\<TransactionResponse
>
Parameters
Name | Type |
---|---|
transaction | Deferrable \<TransactionRequest > |
Returns
Promise
\<TransactionResponse
>
signMessage
▸ Abstract
signMessage(message
): Promise
\<string
>
Parameters
Name | Type |
---|---|
message | string | Bytes |
Returns
Promise
\<string
>
signTransaction
▸ Abstract
signTransaction(transaction
): Promise
\<string
>
Parameters
Name | Type |
---|---|
transaction | Deferrable \<TransactionRequest > |
Returns
Promise
\<string
>
isSigner
▸ Static
isSigner(value
): value is Signer
Parameters
Name | Type |
---|---|
value | any |
Returns
value is Signer