Class SendTransactionResponse
java.lang.Object
org.stellar.sdk.responses.sorobanrpc.SendTransactionResponse
Response for JSON-RPC method sendTransaction.
- See Also:
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionSendTransactionResponse
(SendTransactionResponse.SendTransactionStatus status, String errorResultXdr, List<String> diagnosticEventsXdr, String hash, Long latestLedger, Long latestLedgerCloseTime) Creates a newSendTransactionResponse
instance. -
Method Summary
Modifier and TypeMethodDescriptionboolean
The elements inside can be parsed asDiagnosticEvent
objects.The field can be parsed asTransactionResult
object.getHash()
int
hashCode()
Parses thediagnosticEventsXdr
field from a list of strings to a list ofDiagnosticEvent
objects.Parses theerrorResultXdr
field from a string to anTransactionResult
object.toString()
-
Constructor Details
-
SendTransactionResponse
public SendTransactionResponse(SendTransactionResponse.SendTransactionStatus status, String errorResultXdr, List<String> diagnosticEventsXdr, String hash, Long latestLedger, Long latestLedgerCloseTime) Creates a newSendTransactionResponse
instance.- Parameters:
status
-errorResultXdr
- The field can be parsed asTransactionResult
object.diagnosticEventsXdr
- The elements inside can be parsed asDiagnosticEvent
objects.hash
-latestLedger
-latestLedgerCloseTime
-
-
-
Method Details
-
parseErrorResultXdr
Parses theerrorResultXdr
field from a string to anTransactionResult
object.- Returns:
- the parsed
TransactionResult
object
-
parseDiagnosticEventsXdr
Parses thediagnosticEventsXdr
field from a list of strings to a list ofDiagnosticEvent
objects.- Returns:
- a list of parsed
DiagnosticEvent
objects
-
getStatus
-
getErrorResultXdr
The field can be parsed asTransactionResult
object. -
getDiagnosticEventsXdr
The elements inside can be parsed asDiagnosticEvent
objects. -
getHash
-
getLatestLedger
-
getLatestLedgerCloseTime
-
equals
-
hashCode
public int hashCode() -
toString
-