EthereumRequestGetBlockByHash class
Returns information about a block by hash. ethereum.org
- Inheritance
-
- Object
- BaseServiceRequest<
BlockDetails, Map< String, dynamic> , EthereumRequestDetails> - EthereumRequest<
BlockDetails, Map< String, dynamic> > - EthereumRequestGetBlockByHash
Constructors
- EthereumRequestGetBlockByHash.new({required String blockHash, bool hydrated = true})
Properties
- blockHash → String
-
Hash of a block.
final
- blockNumber → BlockTagOrNumber?
-
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- hydrated → bool
-
If true it returns the full transaction objects, if false only the hashes of the transactions.
final
- method → String
-
eth_getBlockByHash
no setteroverride
- 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(
dynamic result) → BlockDetails -
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