TronRequestGetBlock class
Query block header information or entire block information according to block height or block hash developers.tron.network.
Constructors
- TronRequestGetBlock({required String idOrNum, bool detail = false})
Properties
- detail → bool
-
true means query the entire block information include the header and body. false means only query the block header information.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- idOrNum → String
-
id_or_num can be the block height or the block hash. No value entered means to query the latest block.
final
- method → TronHTTPMethods
-
wallet/getblock
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- visible → bool?
-
Indicates whether the address is visible.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
Map< String, dynamic> result) → Map<String, dynamic> -
Converts the response result to the specified type
RESULT
.inherited -
toJson(
) → Map< String, dynamic> -
Converts the request parameters to a JSON format.
override
-
toRequest(
int _) → TronRequestDetails -
Converts the request parameters to TronRequestDetails with a unique identifier.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited