EthereumRequestCall class
Executes a new message call immediately, without creating a transaction on the block chain. The eth_call method can be used to query internal contract state, to execute validations coded into a contract or even to test what the effect of a transaction would be without running it live. geth.ethereum.org
- Inheritance
-
- Object
- BaseServiceRequest<
Object?, Object?, EthereumRequestDetails> - EthereumRequest<
Object?, Object?> - EthereumRequestCall
Constructors
- EthereumRequestCall.fromMethod({required String contractAddress, required AbiFunctionFragment function, required List params, String? from, BlockTagOrNumber? blockNumber = BlockTagOrNumber.latest})
-
factory
- EthereumRequestCall.fromRaw({required String contractAddress, required String raw, String? from, BlockTagOrNumber? blockNumber = BlockTagOrNumber.latest})
-
factory
Properties
- blockNumber → BlockTagOrNumber?
-
finalinherited
- contractAddress → String
-
final
- from → String?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
no setteroverride
- raw → String
-
final
- requestType → RequestServiceType
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
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) → dynamic -
override
-
toJson(
) → List -
Converts the request parameters to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited