AptosRequestGetBlocksByVersion class

This endpoint allows you to get the transactions in a blockand the corresponding block information given a version in the block. Transactions are limited by max default transactions size. If not all transactionsare present, the user will need to query for the rest of the transactions via theget transactions API.If the block has been pruned, it will return a 410 aptos documation

Inheritance

Constructors

AptosRequestGetBlocksByVersion.new({required BigInt version, bool? withTransaction})

Properties

hashCode int
The hash code for this object.
no setterinherited
method String
no setteroverride
pathParameters List<String>
no setteroverride
queryParameters Map<String, String?>
no setteroverride
requestType → RequestServiceType
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
version BigInt
Ledger version to lookup block information for.
final
withTransaction bool?
If set to true, include all transactions in the blockIf not provided, no transactions will be retrieved
final

Methods

buildRequest(int requestID) AptosRequestDetails
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onResonse(Map<String, dynamic> result) AptosApiBlock
override
toString() String
A string representation of this object.
inherited

Operators

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