AptosRequestSimulateTransaction class
The output of the transaction will have the exact transaction outputs and events that runningan actual signed transaction would have. However, it will not have the associated statehashes, as they are not updated in storage. This can be used to estimate the maximum gasunits for a submitted transaction.To use this, you must:
- Create a SignedTransaction with a zero-padded signature.
- Submit a SubmitTransactionRequest containing a UserTransactionRequest containing that signature. To use this endpoint with BCS, you must submit a SignedTransactionencoded as BCS. See SignedTransaction in types/src/transaction/mod.rs. aptos documation
- Inheritance
-
- Object
- BaseServiceRequest<
List< AptosApiUserTransaction> , List<Map< , AptosRequestDetails>String, dynamic> > - AptosRequest<
List< AptosApiUserTransaction> , List<Map< >String, dynamic> > - AptosPostRequest<
List< AptosApiUserTransaction> , List<Map< >String, dynamic> > - AptosRequestSimulateTransaction
Constructors
Properties
-
body
→ List<
int> -
no setteroverride
- estimateGasUnitPrice → bool?
-
final
- estimateMaxGasAmount → bool?
-
final
- estimatePrioritizedGasUnitPrice → bool?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
headers
→ Map<
String, String> ? -
no setteroverride
- method → String
-
no setteroverride
-
pathParameters
→ List<
String> -
no setterinherited
-
queryParameters
→ Map<
String, String?> -
no setteroverride
- requestType → RequestServiceType
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signedTransactionData
→ List<
int> -
final
Methods
-
buildRequest(
int requestID) → AptosRequestDetails -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
List< Map< result) → List<String, dynamic> >AptosApiUserTransaction> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited