public class Transaction extends Object
Constructor and Description |
---|
Transaction()
Initializes a new instance of the Signature class.
|
Transaction(ICurl curl)
Initializes a new instance of the Signature class.
|
Transaction(String trytes)
Initializes a new instance of the Signature class.
|
Transaction(String trytes,
ICurl customCurl)
Initializes a new instance of the Signature class.
|
Transaction(String signatureFragments,
long currentIndex,
long lastIndex,
String nonce,
String hash,
String obsoleteTag,
long timestamp,
String trunkTransaction,
String branchTransaction,
String address,
long value,
String bundle,
String tag,
long attachmentTimestamp,
long attachmentTimestampLowerBound,
long attachmentTimestampUpperBound)
Initializes a new instance of the Signature class.
|
Transaction(String address,
long value,
String tag,
long timestamp)
Initializes a new instance of the Signature class.
|
Modifier and Type | Method and Description |
---|---|
static Transaction |
asTransactionObject(String trytes)
Converts transaction trytes into a transaction object.
|
static Transaction[] |
asTransactionObjects(String... trytes)
Converts an array of transaction trytes into an array of transaction objects.
|
boolean |
equals(Object obj) |
String |
getAddress()
Get the address.
|
long |
getAttachmentTimestamp()
Get the attachmentTimestamp.
|
long |
getAttachmentTimestampLowerBound() |
long |
getAttachmentTimestampUpperBound() |
String |
getBranchTransaction()
Get the branch transaction.
|
String |
getBundle()
Get the bundle.
|
long |
getCurrentIndex()
Get the current index.
|
String |
getHash()
Get the hash.
|
long |
getLastIndex()
Get the last index.
|
String |
getNonce()
Get the nonce.
|
String |
getObsoleteTag()
Get the obsoleteTag.
|
Boolean |
getPersistence()
Get the persistence.
|
String |
getSignatureFragments()
Get the signature fragments.
|
String |
getTag()
Get the tag.
|
long |
getTimestamp()
Get the timestamp.
|
String |
getTrunkTransaction()
Get the trunk transaction.
|
long |
getValue()
Get the value.
|
boolean |
isTailTransaction()
Checks if the current index is 0
|
void |
setAddress(String address)
Set the address.
|
void |
setAttachmentTimestamp(long attachmentTimestamp)
Set the attachmentTimestamp.
|
void |
setAttachmentTimestampLowerBound(long attachmentTimestampLowerBound) |
void |
setAttachmentTimestampUpperBound(long attachmentTimestampUpperBound) |
void |
setBranchTransaction(String branchTransaction)
Set the branch transaction.
|
void |
setBundle(String bundle)
Set the bundle.
|
void |
setCurrentIndex(long currentIndex)
Set the current index.
|
void |
setHash(String hash)
Set the hash.
|
void |
setLastIndex(long lastIndex)
Set the last index.
|
void |
setNonce(String nonce)
Set the nonce.
|
void |
setObsoleteTag(String obsoleteTag)
Set the obsoleteTag.
|
void |
setPersistence(Boolean persistence)
Set the persistence.
|
void |
setSignatureFragments(String signatureFragments)
Set the signature fragments.
|
void |
setTag(String tag)
Set the tag.
|
void |
setTimestamp(long timestamp)
Set the timestamp.
|
void |
setTrunkTransaction(String trunkTransaction)
Set the trunk transaction.
|
void |
setValue(long value)
Set the value.
|
String |
toString()
Returns a String that represents this object.
|
String |
toTrytes()
Converts the transaction to the corresponding trytes representation
|
void |
transactionObject(String trytes)
Initializes a new instance of the Signature class.
|
public Transaction(String signatureFragments, long currentIndex, long lastIndex, String nonce, String hash, String obsoleteTag, long timestamp, String trunkTransaction, String branchTransaction, String address, long value, String bundle, String tag, long attachmentTimestamp, long attachmentTimestampLowerBound, long attachmentTimestampUpperBound)
signatureFragments
- currentIndex
- lastIndex
- nonce
- hash
- obsoleteTag
- timestamp
- trunkTransaction
- branchTransaction
- address
- value
- bundle
- tag
- attachmentTimestamp
- attachmentTimestampLowerBound
- attachmentTimestampUpperBound
- public Transaction(String address, long value, String tag, long timestamp)
address
- value
- tag
- timestamp
- public Transaction(ICurl curl)
curl
- public Transaction()
public Transaction(String trytes)
trytes
- public static Transaction[] asTransactionObjects(String... trytes)
trytes
- the array of transactions trytespublic static Transaction asTransactionObject(String trytes)
trytes
- the transaction trytespublic long getAttachmentTimestampLowerBound()
public void setAttachmentTimestampLowerBound(long attachmentTimestampLowerBound)
public long getAttachmentTimestampUpperBound()
public void setAttachmentTimestampUpperBound(long attachmentTimestampUpperBound)
public String toString()
public String getHash()
public void setHash(String hash)
hash
- The hash.public String getSignatureFragments()
public void setSignatureFragments(String signatureFragments)
signatureFragments
- The signature fragments.public String getAddress()
public void setAddress(String address)
address
- The address.public long getValue()
public void setValue(long value)
value
- The value.public String getTag()
public void setTag(String tag)
tag
- The tag.public long getTimestamp()
public void setTimestamp(long timestamp)
timestamp
- The timestamp.public long getCurrentIndex()
public void setCurrentIndex(long currentIndex)
currentIndex
- The current index.public long getLastIndex()
public void setLastIndex(long lastIndex)
lastIndex
- The last index.public String getBundle()
public void setBundle(String bundle)
bundle
- The bundle.public String getTrunkTransaction()
public void setTrunkTransaction(String trunkTransaction)
trunkTransaction
- The trunk transaction.public String getBranchTransaction()
public void setBranchTransaction(String branchTransaction)
branchTransaction
- The branch transaction.public String getNonce()
public void setNonce(String nonce)
nonce
- The trunk nonce.public Boolean getPersistence()
public void setPersistence(Boolean persistence)
persistence
- The persistence.public String getObsoleteTag()
public void setObsoleteTag(String obsoleteTag)
obsoleteTag
- The persistence.public long getAttachmentTimestamp()
public void setAttachmentTimestamp(long attachmentTimestamp)
attachmentTimestamp
- The persistence.public String toTrytes()
public void transactionObject(String trytes)
trytes
- public boolean isTailTransaction()
Copyright © 2018. All rights reserved.