A VoidSigner is a class deisgned to allow an address to be used in any API which accepts a Signer, but for which there are no credentials available to perform any actual signing.

This for example allow impersonating an account for the purpose of static calls or estimating gas, but does not allow sending transactions.

Extends

Constructors

new VoidSigner()

new VoidSigner(address, provider?): VoidSigner

Creates a new VoidSigner with address attached to provider.

Parameters

ParameterType
addressstring
provider?null | Provider

Returns

VoidSigner

Overrides

AbstractSigner.constructor

Source

signers/abstract-signer.ts:211

Properties

PropertyModifierTypeDescriptionInherited from
addressreadonlystringThe signer address.-
providerreadonlynull | ProviderThe provider this signer is connected to.AbstractSigner.provider