public class TransactionResult extends java.lang.Object implements XdrElement
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; };
Modifier and Type | Class and Description |
---|---|
static class |
TransactionResult.TransactionResultBuilder |
static class |
TransactionResult.TransactionResultExt
TransactionResultExt's original definition in the XDR file is:
|
static class |
TransactionResult.TransactionResultResult
TransactionResultResult's original definition in the XDR file is:
|
Constructor and Description |
---|
TransactionResult() |
TransactionResult(Int64 feeCharged,
TransactionResult.TransactionResultResult result,
TransactionResult.TransactionResultExt ext) |
Modifier and Type | Method and Description |
---|---|
static TransactionResult.TransactionResultBuilder |
builder() |
static TransactionResult |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static TransactionResult |
fromXdrBase64(java.lang.String xdr) |
static TransactionResult |
fromXdrByteArray(byte[] xdr) |
TransactionResult.TransactionResultExt |
getExt() |
Int64 |
getFeeCharged() |
TransactionResult.TransactionResultResult |
getResult() |
int |
hashCode() |
void |
setExt(TransactionResult.TransactionResultExt ext) |
void |
setFeeCharged(Int64 feeCharged) |
void |
setResult(TransactionResult.TransactionResultResult result) |
TransactionResult.TransactionResultBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public TransactionResult()
public TransactionResult(Int64 feeCharged, TransactionResult.TransactionResultResult result, TransactionResult.TransactionResultExt ext)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static TransactionResult decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static TransactionResult fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static TransactionResult fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static TransactionResult.TransactionResultBuilder builder()
public TransactionResult.TransactionResultBuilder toBuilder()
public Int64 getFeeCharged()
public TransactionResult.TransactionResultResult getResult()
public TransactionResult.TransactionResultExt getExt()
public void setFeeCharged(Int64 feeCharged)
public void setResult(TransactionResult.TransactionResultResult result)
public void setExt(TransactionResult.TransactionResultExt ext)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object