Class SendTransactionResponse
java.lang.Object
org.stellar.sdk.responses.sorobanrpc.SendTransactionResponse
Response for JSON-RPC method sendTransaction.
- See Also:
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionSendTransactionResponse(SendTransactionResponse.SendTransactionStatus status, String errorResultXdr, List<String> diagnosticEventsXdr, String hash, Long latestLedger, Long latestLedgerCloseTime) Creates a newSendTransactionResponseinstance. -
Method Summary
Modifier and TypeMethodDescriptionbooleanThe elements inside can be parsed asDiagnosticEventobjects.The field can be parsed asTransactionResultobject.getHash()inthashCode()Parses thediagnosticEventsXdrfield from a list of strings to a list ofDiagnosticEventobjects.Parses theerrorResultXdrfield from a string to anTransactionResultobject.toString()
-
Constructor Details
-
SendTransactionResponse
public SendTransactionResponse(SendTransactionResponse.SendTransactionStatus status, String errorResultXdr, List<String> diagnosticEventsXdr, String hash, Long latestLedger, Long latestLedgerCloseTime) Creates a newSendTransactionResponseinstance.- Parameters:
status-errorResultXdr- The field can be parsed asTransactionResultobject.diagnosticEventsXdr- The elements inside can be parsed asDiagnosticEventobjects.hash-latestLedger-latestLedgerCloseTime-
-
-
Method Details
-
parseErrorResultXdr
Parses theerrorResultXdrfield from a string to anTransactionResultobject.- Returns:
- the parsed
TransactionResultobject
-
parseDiagnosticEventsXdr
Parses thediagnosticEventsXdrfield from a list of strings to a list ofDiagnosticEventobjects.- Returns:
- a list of parsed
DiagnosticEventobjects
-
getStatus
-
getErrorResultXdr
The field can be parsed asTransactionResultobject. -
getDiagnosticEventsXdr
The elements inside can be parsed asDiagnosticEventobjects. -
getHash
-
getLatestLedger
-
getLatestLedgerCloseTime
-
equals
-
hashCode
public int hashCode() -
toString
-