EthereumRequest<RESULT, SERVICERESPONSE> class abstract

An abstract class representing Ethereum JSON-RPC requests with generic response types.

Inheritance
Implementers

Constructors

EthereumRequest.new({BlockTagOrNumber? blockNumber})
const

Properties

blockNumber BlockTagOrNumber?
final
hashCode int
The hash code for this object.
no setterinherited
method String
final
requestType → RequestServiceType
no setteroverride
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.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(SERVICERESPONSE result) → RESULT
inherited
toJson() List
Converts the request parameters to a JSON representation.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

onBigintResponse(dynamic result) BigInt
Converts a dynamic response to a BigInt, handling hexadecimal conversion.
onIntResponse(dynamic result) int
Converts a dynamic response to an integer, handling hexadecimal conversion.