Package nxt.blockchain
Class TransactionImpl
java.lang.Object
nxt.blockchain.TransactionImpl
- All Implemented Interfaces:
AccountLedger.LedgerEventId,Transaction
- Direct Known Subclasses:
ChildTransactionImpl,FxtTransactionImpl
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface nxt.blockchain.Transaction
Transaction.Builder -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanattachmentIsDuplicate(Map<TransactionType, Map<String, Integer>> duplicates, boolean atAcceptanceHeight) abstract booleanfinal byte[]bytes()longgetAppendages(boolean includeExpiredPrunable) getAppendages(Filter<Appendix> filter, boolean includeExpiredPrunable) getBlock()longintfinal byte[]getBytes()shortintlongintfinal byte[]final intintfinal longgetId()shortgetIndex()org.json.simple.JSONObjectfinal longorg.json.simple.JSONObjectfinal byte[]longfinal longbyte[]final StringintgetType()final byte[]bytestatic TransactionImpl.BuilderImplnewTransactionBuilder(byte[] bytes) static TransactionImpl.BuilderImplnewTransactionBuilder(byte[] bytes, org.json.simple.JSONObject prunableAttachments) static TransactionImpl.BuilderImplnewTransactionBuilder(org.json.simple.JSONObject transactionData) static TransactionImplparseTransaction(byte[] transactionBytes) static TransactionImplparseTransaction(byte[] transactionBytes, org.json.simple.JSONObject prunableAttachments) final byte[]voidvalidate()booleanMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nxt.blockchain.Transaction
getChain, getFee, getSignature, isPhased
-
Method Details
-
getDeadline
public short getDeadline()- Specified by:
getDeadlinein interfaceTransaction
-
getSenderPublicKey
public byte[] getSenderPublicKey()- Specified by:
getSenderPublicKeyin interfaceTransaction
-
getRecipientId
public long getRecipientId()- Specified by:
getRecipientIdin interfaceTransaction
-
getAmount
public long getAmount()- Specified by:
getAmountin interfaceTransaction
-
getHeight
public int getHeight()- Specified by:
getHeightin interfaceTransaction
-
getType
- Specified by:
getTypein interfaceTransaction
-
getVersion
public byte getVersion()- Specified by:
getVersionin interfaceTransaction
-
getBlockId
public long getBlockId()- Specified by:
getBlockIdin interfaceTransaction
-
getBlock
- Specified by:
getBlockin interfaceTransaction
-
getIndex
public short getIndex()- Specified by:
getIndexin interfaceTransaction
-
getTimestamp
public int getTimestamp()- Specified by:
getTimestampin interfaceTransaction
-
getBlockTimestamp
public int getBlockTimestamp()- Specified by:
getBlockTimestampin interfaceTransaction
-
getExpiration
public int getExpiration()- Specified by:
getExpirationin interfaceTransaction
-
getPrunablePlainMessage
- Specified by:
getPrunablePlainMessagein interfaceTransaction
-
getPrunableEncryptedMessage
- Specified by:
getPrunableEncryptedMessagein interfaceTransaction
-
getAttachment
- Specified by:
getAttachmentin interfaceTransaction
-
getAppendages
- Specified by:
getAppendagesin interfaceTransaction
-
getAppendages
- Specified by:
getAppendagesin interfaceTransaction
-
getAppendages
- Specified by:
getAppendagesin interfaceTransaction
-
getId
public final long getId()- Specified by:
getIdin interfaceAccountLedger.LedgerEventId- Specified by:
getIdin interfaceTransaction
-
getStringId
- Specified by:
getStringIdin interfaceTransaction
-
getFullHash
public final byte[] getFullHash()- Specified by:
getFullHashin interfaceAccountLedger.LedgerEventId- Specified by:
getFullHashin interfaceTransaction
-
getSenderId
public final long getSenderId()- Specified by:
getSenderIdin interfaceTransaction
-
getBytes
public final byte[] getBytes()- Specified by:
getBytesin interfaceTransaction
-
getPrunableBytes
public final byte[] getPrunableBytes()- Specified by:
getPrunableBytesin interfaceTransaction
-
bytes
public final byte[] bytes() -
prunableBytes
public final byte[] prunableBytes() -
getUnsignedBytes
public final byte[] getUnsignedBytes()- Specified by:
getUnsignedBytesin interfaceTransaction
-
getJSONObject
public org.json.simple.JSONObject getJSONObject()- Specified by:
getJSONObjectin interfaceTransaction
-
getPrunableAttachmentJSON
public org.json.simple.JSONObject getPrunableAttachmentJSON()- Specified by:
getPrunableAttachmentJSONin interfaceTransaction
-
getECBlockHeight
public int getECBlockHeight()- Specified by:
getECBlockHeightin interfaceTransaction
-
getECBlockId
public long getECBlockId()- Specified by:
getECBlockIdin interfaceTransaction
-
verifySignature
public boolean verifySignature()- Specified by:
verifySignaturein interfaceTransaction
-
getFullSize
public final int getFullSize()- Specified by:
getFullSizein interfaceTransaction
-
validate
- Specified by:
validatein interfaceTransaction- Throws:
NxtException.ValidationException
-
getMinimumFeeFQT
public final long getMinimumFeeFQT()- Specified by:
getMinimumFeeFQTin interfaceTransaction
-
attachmentIsPhased
public abstract boolean attachmentIsPhased() -
attachmentIsDuplicate
public final boolean attachmentIsDuplicate(Map<TransactionType, Map<String, Integer>> duplicates, boolean atAcceptanceHeight) -
parseTransaction
public static TransactionImpl parseTransaction(byte[] transactionBytes) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
parseTransaction
public static TransactionImpl parseTransaction(byte[] transactionBytes, org.json.simple.JSONObject prunableAttachments) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
newTransactionBuilder
public static TransactionImpl.BuilderImpl newTransactionBuilder(byte[] bytes) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
newTransactionBuilder
public static TransactionImpl.BuilderImpl newTransactionBuilder(byte[] bytes, org.json.simple.JSONObject prunableAttachments) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-
newTransactionBuilder
public static TransactionImpl.BuilderImpl newTransactionBuilder(org.json.simple.JSONObject transactionData) throws NxtException.NotValidException - Throws:
NxtException.NotValidException
-