Package org.stellar.sdk.xdr
Class TransactionEnvelope
java.lang.Object
org.stellar.sdk.xdr.TransactionEnvelope
TransactionEnvelope's original definition in the XDR file is:
union TransactionEnvelope switch (EnvelopeType type) { case ENVELOPE_TYPE_TX_V0: TransactionV0Envelope v0; case ENVELOPE_TYPE_TX: TransactionV1Envelope v1; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransactionEnvelope feeBump; };
-
Nested Class Summary
-
Constructor Summary
ConstructorDescriptionTransactionEnvelope
(EnvelopeType discriminant, TransactionV0Envelope v0, TransactionV1Envelope v1, FeeBumpTransactionEnvelope feeBump) -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
static TransactionEnvelope
decode
(XdrDataInputStream stream) void
encode
(XdrDataOutputStream stream) boolean
static TransactionEnvelope
fromXdrBase64
(String xdr) static TransactionEnvelope
fromXdrByteArray
(byte[] xdr) getV0()
getV1()
int
hashCode()
void
setDiscriminant
(EnvelopeType discriminant) void
setFeeBump
(FeeBumpTransactionEnvelope feeBump) void
void
toString()
default String
default byte[]
-
Constructor Details
-
TransactionEnvelope
public TransactionEnvelope() -
TransactionEnvelope
public TransactionEnvelope(EnvelopeType discriminant, TransactionV0Envelope v0, TransactionV1Envelope v1, FeeBumpTransactionEnvelope feeBump)
-
-
Method Details
-
encode
- Throws:
IOException
-
decode
- Throws:
IOException
-
fromXdrBase64
- Throws:
IOException
-
fromXdrByteArray
- Throws:
IOException
-
builder
-
toBuilder
-
getDiscriminant
-
getV0
-
getV1
-
getFeeBump
-
setDiscriminant
-
setV0
-
setV1
-
setFeeBump
-
equals
-
hashCode
public int hashCode() -
toString
-
toXdrBase64
- Throws:
IOException
-
toXdrByteArray
- Throws:
IOException
-