Package org.stellar.sdk.xdr
Class TransactionResult
java.lang.Object
org.stellar.sdk.xdr.TransactionResult
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:
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: -
Constructor Summary
ConstructorsConstructorDescriptionTransactionResult(Int64 feeCharged, TransactionResult.TransactionResultResult result, TransactionResult.TransactionResultExt ext) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionResultdecode(XdrDataInputStream stream) voidencode(XdrDataOutputStream stream) booleanstatic TransactionResultfromXdrBase64(String xdr) static TransactionResultfromXdrByteArray(byte[] xdr) getExt()inthashCode()voidvoidsetFeeCharged(Int64 feeCharged) voidtoString()default Stringdefault byte[]
-
Constructor Details
-
TransactionResult
public TransactionResult() -
TransactionResult
public TransactionResult(Int64 feeCharged, TransactionResult.TransactionResultResult result, TransactionResult.TransactionResultExt ext)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getFeeCharged
-
getResult
-
getExt
-
setFeeCharged
-
setResult
-
setExt
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-