public enum TransactionResultCode extends java.lang.Enum<TransactionResultCode> implements XdrElement
enum TransactionResultCode { txFEE_BUMP_INNER_SUCCESS = 1, // fee bump inner transaction succeeded txSUCCESS = 0, // all operations succeeded txFAILED = -1, // one of the operations failed (none were applied) txTOO_EARLY = -2, // ledger closeTime before minTime txTOO_LATE = -3, // ledger closeTime after maxTime txMISSING_OPERATION = -4, // no operation was specified txBAD_SEQ = -5, // sequence number does not match source account txBAD_AUTH = -6, // too few valid signatures / wrong network txINSUFFICIENT_BALANCE = -7, // fee would bring account below reserve txNO_ACCOUNT = -8, // source account not found txINSUFFICIENT_FEE = -9, // fee is too small txBAD_AUTH_EXTRA = -10, // unused signatures attached to transaction txINTERNAL_ERROR = -11, // an unknown error occurred txNOT_SUPPORTED = -12, // transaction type not supported txFEE_BUMP_INNER_FAILED = -13, // fee bump inner transaction failed txBAD_SPONSORSHIP = -14, // sponsorship not confirmed txBAD_MIN_SEQ_AGE_OR_GAP = -15, // minSeqAge or minSeqLedgerGap conditions not met txMALFORMED = -16, // precondition is invalid txSOROBAN_INVALID = -17 // soroban-specific preconditions were not met };
Modifier and Type | Method and Description |
---|---|
static TransactionResultCode |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
static TransactionResultCode |
fromXdrBase64(java.lang.String xdr) |
static TransactionResultCode |
fromXdrByteArray(byte[] xdr) |
int |
getValue() |
static TransactionResultCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TransactionResultCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
toXdrBase64, toXdrByteArray
public static final TransactionResultCode txFEE_BUMP_INNER_SUCCESS
public static final TransactionResultCode txSUCCESS
public static final TransactionResultCode txFAILED
public static final TransactionResultCode txTOO_EARLY
public static final TransactionResultCode txTOO_LATE
public static final TransactionResultCode txMISSING_OPERATION
public static final TransactionResultCode txBAD_SEQ
public static final TransactionResultCode txBAD_AUTH
public static final TransactionResultCode txINSUFFICIENT_BALANCE
public static final TransactionResultCode txNO_ACCOUNT
public static final TransactionResultCode txINSUFFICIENT_FEE
public static final TransactionResultCode txBAD_AUTH_EXTRA
public static final TransactionResultCode txINTERNAL_ERROR
public static final TransactionResultCode txNOT_SUPPORTED
public static final TransactionResultCode txFEE_BUMP_INNER_FAILED
public static final TransactionResultCode txBAD_SPONSORSHIP
public static final TransactionResultCode txBAD_MIN_SEQ_AGE_OR_GAP
public static final TransactionResultCode txMALFORMED
public static final TransactionResultCode txSOROBAN_INVALID
public static TransactionResultCode[] values()
for (TransactionResultCode c : TransactionResultCode.values()) System.out.println(c);
public static TransactionResultCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getValue()
public static TransactionResultCode decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static TransactionResultCode fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static TransactionResultCode fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException