SuiRequestExecuteTransactionBlock class
Execute the transaction and wait for results if desired. Request types: 1. WaitForEffectsCert: waits for TransactionEffectsCert and then return to client. This mode is a proxy for transaction finality. 2. WaitForLocalExecution: waits for TransactionEffectsCert and make sure the node executed the transaction locally before returning the client. The local execution makes sure this node is aware of this transaction when client fires subsequent queries. However if the node fails to execute the transaction locally in a timely manner, a bool type in the response is set to false to indicated the case. request_type is default to be WaitForEffectsCert unless options.show_events or options.show_effects is true sui documation
- Inheritance
-
- Object
- BaseServiceRequest<
SuiApiTransactionBlockResponse, Map< String, dynamic> , SuiRequestDetails> - SuiRequest<
SuiApiTransactionBlockResponse, Map< String, dynamic> > - SuiRequestExecuteTransactionBlock
Constructors
-
SuiRequestExecuteTransactionBlock.new({required String txBytes, required List<
String> signatures, SuiApiTransactionBlockResponseOptions? options, SuiApiExecuteTransactionRequestType? type}) -
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- method → String
-
The Sui method associated with the request.
no setteroverride
- options → SuiApiTransactionBlockResponseOptions?
-
Options for specifying the content to be returned
final
- pagination → SuiApiRequestPagination?
-
finalinherited
- requestType → RequestServiceType
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
signatures
→ List<
String> -
A list of signatures (flag || signature || pubkey bytes, as base-64 encoded string).
Signature is committed to the intent message of the transaction data, as base-64 encoded string.
final
- txBytes → String
-
BCS serialized transaction data bytes without its type tag, as base-64 encoded string.
final
- type → SuiApiExecuteTransactionRequestType?
-
The request type, derived from SuiApiTransactionBlockResponseOptions if None
final
Methods
-
buildRequest(
int requestID) → SuiRequestDetails -
Converts the request parameters to a SuiRequestDetails object.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onResonse(
Map< String, dynamic> result) → SuiApiTransactionBlockResponse -
override
-
toJson(
) → List -
Converts the request parameters to a JSON representation.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited