Package org.stellar.sdk.xdr
Class TransactionMetaV3
java.lang.Object
org.stellar.sdk.xdr.TransactionMetaV3
- All Implemented Interfaces:
XdrElement
TransactionMetaV3's original definition in the XDR file is:
struct TransactionMetaV3
{
ExtensionPoint ext;
LedgerEntryChanges txChangesBefore; // tx level changes before operations
// are applied if any
OperationMeta operations<>; // meta for each operation
LedgerEntryChanges txChangesAfter; // tx level changes after operations are
// applied if any
SorobanTransactionMeta* sorobanMeta; // Soroban-specific meta (only for
// Soroban transactions).
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionMetaV3(ExtensionPoint ext, LedgerEntryChanges txChangesBefore, OperationMeta[] operations, LedgerEntryChanges txChangesAfter, SorobanTransactionMeta sorobanMeta) Creates a newTransactionMetaV3instance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionMetaV3decode(XdrDataInputStream stream) static TransactionMetaV3decode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionMetaV3static TransactionMetaV3fromXdrBase64(String xdr) static TransactionMetaV3fromXdrByteArray(byte[] xdr) getExt()Value of theextfield.Value of theoperationsfield.Value of thesorobanMetafield.Value of thetxChangesAfterfield.Value of thetxChangesBeforefield.inthashCode()voidsetExt(ExtensionPoint ext) Value of theextfield.voidsetOperations(OperationMeta[] operations) Value of theoperationsfield.voidsetSorobanMeta(SorobanTransactionMeta 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
-
TransactionMetaV3
public TransactionMetaV3() -
TransactionMetaV3
public TransactionMetaV3(ExtensionPoint ext, LedgerEntryChanges txChangesBefore, OperationMeta[] operations, LedgerEntryChanges txChangesAfter, SorobanTransactionMeta sorobanMeta) Creates a newTransactionMetaV3instance.- Parameters:
ext- theextfield valuetxChangesBefore- thetxChangesBeforefield valueoperations- theoperationsfield valuetxChangesAfter- thetxChangesAfterfield valuesorobanMeta- thesorobanMetafield 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
-
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
-
equals
-
hashCode
public int hashCode() -
toString
-