Package org.stellar.sdk.xdr
Class TransactionV1Envelope
java.lang.Object
org.stellar.sdk.xdr.TransactionV1Envelope
- All Implemented Interfaces:
XdrElement
TransactionV1Envelope's original definition in the XDR file is:
struct TransactionV1Envelope
{
Transaction 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
ConstructorsConstructorDescriptionTransactionV1Envelope(Transaction tx, DecoratedSignature[] signatures) Creates a newTransactionV1Envelopeinstance. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()static TransactionV1Envelopedecode(XdrDataInputStream stream) static TransactionV1Envelopedecode(XdrDataInputStream stream, int maxDepth) voidencode(XdrDataOutputStream stream) Encodes this value to XDR and writes it to the provided stream.booleanstatic TransactionV1Envelopestatic TransactionV1EnvelopefromXdrBase64(String xdr) static TransactionV1EnvelopefromXdrByteArray(byte[] xdr) Value of thesignaturesfield.getTx()Value of thetxfield.inthashCode()voidsetSignatures(DecoratedSignature[] signatures) Value of thesignaturesfield.voidsetTx(Transaction tx) Value of thetxfield.toJson()Serializes this value to JSON.toString()Methods inherited from interface org.stellar.sdk.xdr.XdrElement
toXdrBase64, toXdrByteArray
-
Constructor Details
-
TransactionV1Envelope
public TransactionV1Envelope() -
TransactionV1Envelope
Creates a newTransactionV1Envelopeinstance.- 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 TransactionV1Envelope 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
-