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 parameterValue
P extends null | Providernull | Provider

Implements

Constructors

new AbstractSigner()

new AbstractSigner<P>(provider?): AbstractSigner<P>

Creates a new Signer connected to provider.

Parameters

ParameterType
provider?P

Returns

AbstractSigner<P>

Source

signers/abstract-signer.ts:63

Properties

PropertyModifierTypeDescription
providerreadonlyPThe provider this signer is connected to.

Methods

connect()

abstract connect(provider): Signer

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

ParameterTypeDescription
providernull | ProviderThe provider to connect to.

Returns

Signer

The connected signer.

Implementation of

Signer.connect

Source

signers/abstract-signer.ts:92


getAddress()

abstract getAddress(): Promise<string>

Resolves to the Signer address.

Returns

Promise<string>

Implementation of

Signer.getAddress

Source

signers/abstract-signer.ts:70