public class TransactionSignaturePayload extends java.lang.Object implements XdrElement
struct TransactionSignaturePayload { Hash networkId; union switch (EnvelopeType type) { // Backwards Compatibility: Use ENVELOPE_TYPE_TX to sign ENVELOPE_TYPE_TX_V0 case ENVELOPE_TYPE_TX: Transaction tx; case ENVELOPE_TYPE_TX_FEE_BUMP: FeeBumpTransaction feeBump; } taggedTransaction; };
Modifier and Type | Class and Description |
---|---|
static class |
TransactionSignaturePayload.TransactionSignaturePayloadBuilder |
static class |
TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction
TransactionSignaturePayloadTaggedTransaction's original definition in the XDR file is:
|
Constructor and Description |
---|
TransactionSignaturePayload() |
TransactionSignaturePayload(Hash networkId,
TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction taggedTransaction) |
Modifier and Type | Method and Description |
---|---|
static TransactionSignaturePayload.TransactionSignaturePayloadBuilder |
builder() |
static TransactionSignaturePayload |
decode(XdrDataInputStream stream) |
void |
encode(XdrDataOutputStream stream) |
boolean |
equals(java.lang.Object o) |
static TransactionSignaturePayload |
fromXdrBase64(java.lang.String xdr) |
static TransactionSignaturePayload |
fromXdrByteArray(byte[] xdr) |
Hash |
getNetworkId() |
TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction |
getTaggedTransaction() |
int |
hashCode() |
void |
setNetworkId(Hash networkId) |
void |
setTaggedTransaction(TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction taggedTransaction) |
TransactionSignaturePayload.TransactionSignaturePayloadBuilder |
toBuilder() |
java.lang.String |
toString() |
toXdrBase64, toXdrByteArray
public TransactionSignaturePayload()
public TransactionSignaturePayload(Hash networkId, TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction taggedTransaction)
public void encode(XdrDataOutputStream stream) throws java.io.IOException
encode
in interface XdrElement
java.io.IOException
public static TransactionSignaturePayload decode(XdrDataInputStream stream) throws java.io.IOException
java.io.IOException
public static TransactionSignaturePayload fromXdrBase64(java.lang.String xdr) throws java.io.IOException
java.io.IOException
public static TransactionSignaturePayload fromXdrByteArray(byte[] xdr) throws java.io.IOException
java.io.IOException
public static TransactionSignaturePayload.TransactionSignaturePayloadBuilder builder()
public TransactionSignaturePayload.TransactionSignaturePayloadBuilder toBuilder()
public Hash getNetworkId()
public TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction getTaggedTransaction()
public void setNetworkId(Hash networkId)
public void setTaggedTransaction(TransactionSignaturePayload.TransactionSignaturePayloadTaggedTransaction taggedTransaction)
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object