注意: 此页面尚未翻译成中文。以下内容为英文原版。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()
address
attached to provider
.
Parameters
Parameter | Type |
---|---|
address | string |
provider ? | null | Provider |
Returns
VoidSigner
Overrides
AbstractSigner
.constructor
Source
signers/abstract-signer.ts:220Properties
Property | Modifier | Type | Description | Inherited from |
---|---|---|---|---|
address | readonly | string | The signer address. | - |
provider | readonly | null | Provider | The provider this signer is connected to. | AbstractSigner .provider |