Property | Type | Description | Overrides |
---|---|---|---|
provider | null | Provider | The Provider attached to this Signer (if any). | ContractRunner .provider |
Parameter | Type | Description |
---|---|---|
tx | TransactionRequest | The transaction to call. |
Promise
<string
>
A promise resolving to the result of the call.
ContractRunner.call
Parameter | Type | Description |
---|---|---|
provider | null | Provider | The Provider to connect to. |
Signer
A new instance of this Signer.
Parameter | Type | Description |
---|---|---|
tx | TransactionRequest |
Promise
<AccessList
>
A promise resolving to the access list.
ContractRunner.createAccessList
gasLimit
to successfully run all the necessary computations and store the
needed state that the transaction intends.
Keep in mind that this is best efforts, since the state of the Blockchain is in flux, which could affect
transaction gas requirements.
Parameter | Type | Description |
---|---|---|
tx | TransactionRequest | The transaction to estimate gas for. |
Promise
<bigint
>
A promise resolving to the estimated gas.
ContractRunner.estimateGas
gasLimit
will need to be
made.
Promise
<string
>
The address of the Signer.
Addressable
.getAddress
Parameter | Type | Description |
---|---|---|
blockTag ? | BlockTag | The blocktag to base the transaction count on, keep in mind many nodes do not honour this value and silently ignore it [default: "latest" ] |
Promise
<number
>
The next nonce.
to
and from
addressesfrom
is specified , check that it matches this SignerParameter | Type | Description |
---|---|---|
tx | TransactionRequest | The call to prepare |
Promise
<TransactionLike
>
A promise resolving to the prepared transaction.
to
and from
addressesfrom
is specified , check that it matches this Signernonce
via signer.getNonce("pending")
gasLimit
via signer.estimateGas(tx)
chainId
via signer.provider.getNetwork()
type
and relevant fee data for that type (gasPrice
)Parameter | Type | Description |
---|---|---|
tx | TransactionRequest | The transaction to prepare. |
Promise
<TransactionLike
>
A promise resolving to the prepared transaction.
tx
to the Network. The signer.populateTransaction(tx)
is called first to ensure all necessary
properties for the transaction to be valid have been popualted first.
Parameter | Type | Description |
---|---|---|
tx | TransactionRequest | The transaction to send. |
Promise
<TransactionResponse
>
A promise resolving to the transaction response.
ContractRunner.sendTransaction
message
is a string, it is signed as UTF-8 encoded bytes. It is not interpretted as a
BytesLike; so the string "0x1234"
is signed as six characters, not two bytes.
To sign that example as two bytes, the Uint8Array should be used (i.e. new Uint8Array([ 0x12, 0x34 ])
).
Parameter | Type | Description |
---|---|---|
message | string | Uint8Array | The message to sign. |
Promise
<string
>
A promise resolving to the signed message.
tx
, returning the fully signed transaction. This does not populate any additional properties within the
transaction.
Parameter | Type | Description |
---|---|---|
tx | TransactionRequest | The transaction to sign. |
Promise
<string
>
A promise resolving to the signed transaction.
Parameter | Type | Description |
---|---|---|
domain | TypedDataDomain | The domain of the typed data. |
types | Record <string , TypedDataField []> | The types of the typed data. |
value | Record <string , any > | The value of the typed data. |
Promise
<string
>
A promise resolving to the signed typed data.