Package org.stellar.sdk.xdr
Class TransactionMetaV4
java.lang.Object
org.stellar.sdk.xdr.TransactionMetaV4
- All Implemented Interfaces:
XdrElement
TransactionMetaV4's original definition in the XDR file is:
struct TransactionMetaV4
{
ExtensionPoint ext;
LedgerEntryChanges txChangesBefore; // tx level changes before operations
// are applied if any
OperationMetaV2 operations<>; // meta for each operation
LedgerEntryChanges txChangesAfter; // tx level changes after operations are
// applied if any
SorobanTransactionMetaV2* sorobanMeta; // Soroban-specific meta (only for
// Soroban transactions).
TransactionEvent events<>; // Used for transaction-level events (like fee payment)
DiagnosticEvent diagnosticEvents<>; // Used for all diagnostic information
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionMetaV4(ExtensionPoint ext, LedgerEntryChanges txChangesBefore, OperationMetaV2[] operations, LedgerEntryChanges txChangesAfter, SorobanTransactionMetaV2 sorobanMeta, TransactionEvent[] events, DiagnosticEvent[] diagnosticEvents) Creates a newTransactionMetaV4instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionMetaV4decode(XdrDataInputStream stream) static TransactionMetaV4decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionMetaV4static TransactionMetaV4fromXdrBase64(String xdr) static TransactionMetaV4fromXdrByteArray(byte[] xdr) Value of thediagnosticEventsfield.Value of theeventsfield.getExt()Value of theextfield.Value of theoperationsfield.Value of thesorobanMetafield.Value of thetxChangesAfterfield.Value of thetxChangesBeforefield.inthashCode()voidsetDiagnosticEvents(DiagnosticEvent[] diagnosticEvents) Value of thediagnosticEventsfield.voidsetEvents(TransactionEvent[] events) Value of theeventsfield.voidsetExt(ExtensionPoint ext) Value of theextfield.voidsetOperations(OperationMetaV2[] operations) Value of theoperationsfield.voidsetSorobanMeta(SorobanTransactionMetaV2 sorobanMeta) Value of thesorobanMetafield.voidsetTxChangesAfter(LedgerEntryChanges txChangesAfter) Value of thetxChangesAfterfield.voidsetTxChangesBefore(LedgerEntryChanges txChangesBefore) Value of thetxChangesBeforefield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionMetaV4
public TransactionMetaV4() -
TransactionMetaV4
public TransactionMetaV4(ExtensionPoint ext, LedgerEntryChanges txChangesBefore, OperationMetaV2[] operations, LedgerEntryChanges txChangesAfter, SorobanTransactionMetaV2 sorobanMeta, TransactionEvent[] events, DiagnosticEvent[] diagnosticEvents) Creates a newTransactionMetaV4instance.- Parameters:
ext- theextfield valuetxChangesBefore- thetxChangesBeforefield valueoperations- theoperationsfield valuetxChangesAfter- thetxChangesAfterfield valuesorobanMeta- thesorobanMetafield valueevents- theeventsfield valuediagnosticEvents- thediagnosticEventsfield 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
-
getExt
Value of theextfield.- Returns:
- the
extfield value
-
getTxChangesBefore
Value of thetxChangesBeforefield.- Returns:
- the
txChangesBeforefield value
-
getOperations
Value of theoperationsfield.- Returns:
- the
operationsfield value
-
getTxChangesAfter
Value of thetxChangesAfterfield.- Returns:
- the
txChangesAfterfield value
-
getSorobanMeta
Value of thesorobanMetafield.- Returns:
- the
sorobanMetafield value
-
getEvents
Value of theeventsfield.- Returns:
- the
eventsfield value
-
getDiagnosticEvents
Value of thediagnosticEventsfield.- Returns:
- the
diagnosticEventsfield value
-
setExt
Value of theextfield.- Parameters:
ext- theextfield value
-
setTxChangesBefore
Value of thetxChangesBeforefield.- Parameters:
txChangesBefore- thetxChangesBeforefield value
-
setOperations
Value of theoperationsfield.- Parameters:
operations- theoperationsfield value
-
setTxChangesAfter
Value of thetxChangesAfterfield.- Parameters:
txChangesAfter- thetxChangesAfterfield value
-
setSorobanMeta
Value of thesorobanMetafield.- Parameters:
sorobanMeta- thesorobanMetafield value
-
setEvents
Value of theeventsfield.- Parameters:
events- theeventsfield value
-
setDiagnosticEvents
Value of thediagnosticEventsfield.- Parameters:
diagnosticEvents- thediagnosticEventsfield value
-
equals
-
hashCode
public int hashCode() -
toString
-