Package org.stellar.sdk.xdr
Class TransactionV0Envelope
java.lang.Object
org.stellar.sdk.xdr.TransactionV0Envelope
- All Implemented Interfaces:
XdrElement
TransactionV0Envelope's original definition in the XDR file is:
struct TransactionV0Envelope
{
TransactionV0 tx;
/* Each decorated signature is a signature over the SHA256 hash of
* a TransactionSignaturePayload */
DecoratedSignature signatures<20>;
};
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from interface org.stellar.sdk.xdr.XdrElement
gson -
Constructor Summary
ConstructorsConstructorDescriptionTransactionV0Envelope(TransactionV0 tx, DecoratedSignature[] signatures) Creates a newTransactionV0Envelopeinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionV0Envelopedecode(XdrDataInputStream stream) static TransactionV0Envelopedecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionV0Envelopestatic TransactionV0EnvelopefromXdrBase64(String xdr) static TransactionV0EnvelopefromXdrByteArray(byte[] xdr) Value of thesignaturesfield.getTx()Value of thetxfield.inthashCode()voidsetSignatures(DecoratedSignature[] signatures) Value of thesignaturesfield.voidsetTx(TransactionV0 tx) Value of thetxfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionV0Envelope
public TransactionV0Envelope() -
TransactionV0Envelope
Creates a newTransactionV0Envelopeinstance.- Parameters:
tx- thetxfield valuesignatures- thesignaturesfield 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
public static TransactionV0Envelope decode(XdrDataInputStream stream, int maxDepth) throws IOException - 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
-
getTx
Value of thetxfield.- Returns:
- the
txfield value
-
getSignatures
Value of thesignaturesfield.- Returns:
- the
signaturesfield value
-
setTx
Value of thetxfield.- Parameters:
tx- thetxfield value
-
setSignatures
Value of thesignaturesfield.- Parameters:
signatures- thesignaturesfield value
-
equals
-
hashCode
public int hashCode() -
toString
-