AptosRequestGetBlocksByHeight class
This endpoint allows you to get the transactions in a blockand the corresponding block information.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 is pruned, it will return a 410 aptos documation
- Inheritance
-
- Object
- BaseServiceRequest<
AptosApiBlock, Map< String, dynamic> , AptosRequestDetails> - AptosRequest<
AptosApiBlock, Map< String, dynamic> > - AptosRequestGetBlocksByHeight
Constructors
- AptosRequestGetBlocksByHeight.new({required BigInt blockHeight, bool? withTransaction})
Properties
- blockHeight → BigInt
-
Block height to lookup. Starts at 0
final
- 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
- 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