TransactionResultXdr

data class TransactionResultXdr(val feeCharged: Int64Xdr, val result: TransactionResultResultXdr, val ext: TransactionResultExtXdr)

XDR Source: 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;

};

Constructors

Link copied to clipboard
constructor(feeCharged: Int64Xdr, result: TransactionResultResultXdr, ext: TransactionResultExtXdr)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

actual fee charged for the transaction

Link copied to clipboard

Functions

Link copied to clipboard
fun encode(writer: XdrWriter)
Link copied to clipboard

Encodes this XDR object to a base64 string.