Signers
AbstractSigner
An AbstractSigner includes most of teh functionality required to get a Signer working as expected, but requires a few Signer-specific methods be overridden.
Extended by
Type parameters
Type parameter | Value |
---|---|
P extends null | Provider | null | Provider |
Implements
Constructors
new AbstractSigner()
Creates a new Signer connected to provider
.
Parameters
Parameter | Type |
---|---|
provider ? | P |
Returns
Source
Properties
Property | Modifier | Type | Description |
---|---|---|---|
provider | readonly | P | The provider this signer is connected to. |
Methods
connect()
Returns the signer connected to provider
.
This may throw, for example, a Signer connected over a Socket or to a specific instance of a node may not be transferrable.
Parameters
Parameter | Type | Description |
---|---|---|
provider | null | Provider | The provider to connect to. |
Returns
The connected signer.
Implementation of
Source
getAddress()
Resolves to the Signer address.
Returns
Promise
<string
>
Implementation of
Source
Was this page helpful?