EthereumRequestEstimateGas class
Generates and returns an estimate of how much gas is necessary to allow the transaction to complete. The transaction will not be added to the blockchain. Note that the estimate may be significantly more than the amount of gas actually used by the transaction, for a variety of reasons including EVM mechanics and node performance. ethereum.org
- Inheritance
-
- Object
- BaseServiceRequest<
BigInt, Object, EthereumRequestDetails> - EthereumRequest<
BigInt, Object> - EthereumRequestEstimateGas
Constructors
-
EthereumRequestEstimateGas.new({required Map<
String, dynamic> transaction, BlockTagOrNumber? blockNumber = BlockTagOrNumber.pending})
Properties
- blockNumber → BlockTagOrNumber?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
eth_estimateGas
no setteroverride
- requestType → RequestServiceType
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
transaction
→ Map<
String, dynamic> -
final
Methods
-
buildRequest(
int requestId) → EthereumRequestDetails -
Converts the request parameters to a EthereumRequestDetails object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
Object result) → BigInt -
override
-
toJson(
) → List -
Converts the request parameters to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited