Package org.stellar.sdk.xdr
Class TransactionResult
java.lang.Object
org.stellar.sdk.xdr.TransactionResult
- All Implemented Interfaces:
XdrElement
TransactionResult's original definition in the XDR file is:
struct TransactionResult
{
int64 feeCharged; // actual fee charged for the transaction
union switch (TransactionResultCode code)
{
case txFEE_BUMP_INNER_SUCCESS:
case txFEE_BUMP_INNER_FAILED:
InnerTransactionResultPair innerResultPair;
case txSUCCESS:
case txFAILED:
OperationResult results<>;
case txTOO_EARLY:
case txTOO_LATE:
case txMISSING_OPERATION:
case txBAD_SEQ:
case txBAD_AUTH:
case txINSUFFICIENT_BALANCE:
case txNO_ACCOUNT:
case txINSUFFICIENT_FEE:
case txBAD_AUTH_EXTRA:
case txINTERNAL_ERROR:
case txNOT_SUPPORTED:
// case txFEE_BUMP_INNER_FAILED: handled above
case txBAD_SPONSORSHIP:
case txBAD_MIN_SEQ_AGE_OR_GAP:
case txMALFORMED:
case txSOROBAN_INVALID:
case txFROZEN_KEY_ACCESSED:
void;
}
result;
// reserved for future use
union switch (int v)
{
case 0:
void;
}
ext;
};
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classTransactionResultExt's original definition in the XDR file is:static classTransactionResultResult's original definition in the XDR file is: -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionResult(Int64 feeCharged, TransactionResult.TransactionResultResult result, TransactionResult.TransactionResultExt ext) Creates a newTransactionResultinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionResultdecode(XdrDataInputStream stream) static TransactionResultdecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionResultstatic TransactionResultfromXdrBase64(String xdr) static TransactionResultfromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of thefeeChargedfield.Value of theresultfield.inthashCode()voidValue of theextfield.voidsetFeeCharged(Int64 feeCharged) Value of thefeeChargedfield.voidValue of theresultfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionResult
public TransactionResult() -
TransactionResult
public TransactionResult(Int64 feeCharged, TransactionResult.TransactionResultResult result, TransactionResult.TransactionResultExt ext) Creates a newTransactionResultinstance.- Parameters:
feeCharged- thefeeChargedfield valueresult- theresultfield valueext- theextfield value
-
-
Method Details
-
encode
Description copied from interface:XdrElementEncodes this value to XDR and writes it to the provided stream.- Specified by:
encodein interfaceXdrElement- Parameters:
stream- the destination XDR output stream- Throws:
IOException- if an I/O error occurs while writing the value
-
decode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
toJson
Description copied from interface:XdrElementSerializes this value to JSON.- Specified by:
toJsonin interfaceXdrElement- Returns:
- the JSON representation of this value
-
fromJson
-
builder
-
toBuilder
-
getFeeCharged
Value of thefeeChargedfield.- Returns:
- the
feeChargedfield value
-
getResult
Value of theresultfield.- Returns:
- the
resultfield value
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
setFeeCharged
Value of thefeeChargedfield.- Parameters:
feeCharged- thefeeChargedfield value
-
setResult
Value of theresultfield.- Parameters:
result- theresultfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
equals
-
hashCode
public int hashCode() -
toString
-