Package org.stellar.sdk.responses
Class SubmitTransactionResponse
java.lang.Object
org.stellar.sdk.responses.Response
org.stellar.sdk.responses.SubmitTransactionResponse
Represents server response after submitting transaction.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classAdditional information returned by a server. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDecoding "TransactionResult" from "resultXdr".Additional information returned by a server.getHash()getOfferIdFromResult(int position) Helper method that returns Offer ID for ManageOffer from TransactionResult Xdr.inthashCode()booleanMethods inherited from class org.stellar.sdk.responses.Response
getRateLimitLimit, getRateLimitRemaining, getRateLimitReset, setHeaders
-
Method Details
-
isSuccess
public boolean isSuccess() -
getEnvelopeXdr
-
getResultXdr
-
getOfferIdFromResult
Helper method that returns Offer ID for ManageOffer from TransactionResult Xdr. This is helpful when you need ID of an offer to update it later.- Parameters:
position- Position of ManageSellOffer/ManageBuyOffer operation. If it is second operation in this transaction this should be equal1.- Returns:
- Offer ID or
nullwhen operation atpositionis not a ManageSellOffer/ManageBuyOffer operation or error has occurred. - Throws:
IOException
-
getDecodedTransactionResult
Decoding "TransactionResult" from "resultXdr". This will beOptional.empty()()if transaction has failed.- Throws:
IOException
-
equals
-
hashCode
public int hashCode() -
getHash
-
getLedger
-
getExtras
Additional information returned by a server. This will benullif transaction succeeded.
-