Class Transaction
- All Implemented Interfaces:
- Direct Known Subclasses:
AccountKeyLinkTransactionV1,CosignatureV1,MosaicDefinitionTransactionV1,MosaicSupplyChangeTransactionV1,MultisigAccountModificationTransactionV1,MultisigAccountModificationTransactionV2,MultisigTransactionV1,NamespaceRegistrationTransactionV1,TransferTransactionV1,TransferTransactionV2
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Timestampprotected final intprotected Amountprotected NetworkTypeprotected Signatureprotected final longprotected PublicKeyprotected final longprotected Timestampprotected TransactionTypeprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the deadline field.getFee()Gets the fee field.Reads a named field.Gets the network field.Gets the signature field.Gets the signerPublicKey field.Gets the timestamp field.getType()Gets the type field.intGets the version field.protected voidserializeInto(Writer buffer) Writes this object's fields into the supplied buffer.voidsetDeadline(Timestamp value) Sets the deadline field.voidSets the fee field.voidSets a named field.voidsetNetwork(NetworkType value) Sets the network field.voidsetSignature(Signature value) Sets the signature field.voidsetSignerPublicKey(PublicKey value) Sets the signerPublicKey field.voidsetTimestamp(Timestamp value) Sets the timestamp field.voidsetType(TransactionType value) Sets the type field.voidsetVersion(int value) Sets the version field.intsize()Calculates the size of the object.toJson()Converts this object to a JSON-serializable representation.Returns the non-verifiable form of this transaction (omits thesignaturefield).toString()Returns a string representation of this object.Returns the type-hint map driving the rule-based descriptor pipeline.Methods inherited from class org.symbol.sdk.CatbufferType
asByteArray, asBytes, asInt, asList, asLong, serialize, sort, toJsonString
-
Field Details
-
type
-
version
protected int version -
network
-
timestamp
-
signerPublicKey
-
signature
-
fee
-
deadline
-
entityBodyReserved_1
protected final int entityBodyReserved_1- See Also:
-
signerPublicKeySize
protected final long signerPublicKeySize- See Also:
-
signatureSize
protected final long signatureSize- See Also:
-
TYPE_HINTS
-
-
Constructor Details
-
Transaction
public Transaction()Creates a new Transaction.
-
-
Method Details
-
typeHints
- Transaction.typeHints
Returns the type-hint map driving the rule-based descriptor pipeline.
- Overrides:
typeHintsin classCatbufferType- Returns:
Field-name → rule-key map.
-
setField
- Transaction.setField
Sets a named field. Used by the rule-based descriptor pipeline.
- Overrides:
setFieldin classCatbufferType- Parameters:
name- Field name (descriptor key).value- Value to assign.
-
getField
- Transaction.getField
Reads a named field. Used by the facade-level entity inspection helpers.
- Overrides:
getFieldin classCatbufferType- Parameters:
name- Field name.- Returns:
Field value.
-
toNonVerifiable
- Transaction.toNonVerifiable
Returns the non-verifiable form of this transaction (omits the
signaturefield). Used by the NEM facade for JSON payload preparation. Concrete subclasses override; calling this on the abstract base directly is a programmer error.
- Returns:
Non-verifiable transaction.
-
getType
- Transaction.getType
Gets the type field.
- Returns:
The type field.
-
setType
- Transaction.setType
Sets the type field.
- Parameters:
value- New type value.
-
getVersion
public int getVersion()- Transaction.getVersion
Gets the version field.
- Returns:
The version field.
-
setVersion
public void setVersion(int value) - Transaction.setVersion
Sets the version field.
- Parameters:
value- New version value.
-
getNetwork
- Transaction.getNetwork
Gets the network field.
- Returns:
The network field.
-
setNetwork
- Transaction.setNetwork
Sets the network field.
- Parameters:
value- New network value.
-
getTimestamp
- Transaction.getTimestamp
Gets the timestamp field.
- Returns:
The timestamp field.
-
setTimestamp
- Transaction.setTimestamp
Sets the timestamp field.
- Parameters:
value- New timestamp value.
-
getSignerPublicKey
- Transaction.getSignerPublicKey
Gets the signerPublicKey field.
- Returns:
The signerPublicKey field.
-
setSignerPublicKey
- Transaction.setSignerPublicKey
Sets the signerPublicKey field.
- Parameters:
value- New signerPublicKey value.
-
getSignature
- Transaction.getSignature
Gets the signature field.
- Returns:
The signature field.
-
setSignature
- Transaction.setSignature
Sets the signature field.
- Parameters:
value- New signature value.
-
getFee
- Transaction.getFee
Gets the fee field.
- Returns:
The fee field.
-
setFee
- Transaction.setFee
Sets the fee field.
- Parameters:
value- New fee value.
-
getDeadline
- Transaction.getDeadline
Gets the deadline field.
- Returns:
The deadline field.
-
setDeadline
- Transaction.setDeadline
Sets the deadline field.
- Parameters:
value- New deadline value.
-
size
public int size()- Transaction.size
Calculates the size of the object.
- Returns:
Size of this object in bytes.
-
serializeInto
- Transaction.serializeInto
Writes this object's fields into the supplied buffer.
- Specified by:
serializeIntoin classCatbufferType- Parameters:
buffer- Output writer.
-
toString
- Transaction.toString
Returns a string representation of this object.
-
toJson
- Transaction.toJson
Converts this object to a JSON-serializable representation.
- Specified by:
toJsonin classCatbufferType- Returns:
JSON-serializable representation of this object.
-