|
iota.lib.cpp
IOTA C++ Library
|
#include <transaction.hpp>
Public Member Functions | |
| Transaction ()=default | |
| ~Transaction ()=default | |
| Transaction (const Types::Trytes &trytes) | |
| Transaction (const Types::Trytes &signatureFragments, int64_t currentIndex, int64_t lastIndex, const Types::Trytes &nonce, const Types::Trytes &hash, int64_t timestamp, const Types::Trytes &trunkTransaction, const Types::Trytes &branchTransaction, const Models::Address &address, int64_t value, const Types::Trytes &bundle, const Models::Tag &tag, int64_t attachmentTimestamp, int64_t attachmentTimestampLowerBound, int64_t attachmentTimestampUpperBound) | |
| Transaction (const Models::Address &address, int64_t value, const Models::Tag &tag, int64_t timestamp, int64_t attachmentTimestamp=0, int64_t attachmentTimestampLowerBound=0, int64_t attachmentTimestampUpperBound=0) | |
| bool | isTailTransaction () const |
| const Types::Trytes & | getHash () const |
| void | setHash (const Types::Trytes &hash) |
| const Types::Trytes & | getSignatureFragments () const |
| void | setSignatureFragments (const Types::Trytes &signatureFragments) |
| const Models::Address & | getAddress () const |
| void | setAddress (const Models::Address &address) |
| int64_t | getValue () const |
| void | setValue (int64_t value) |
| const Models::Tag & | getTag () const |
| void | setTag (const Models::Tag &tag) |
| const Models::Tag & | getObsoleteTag () const |
| void | setObsoleteTag (const Models::Tag &tag) |
| int64_t | getTimestamp () const |
| void | setTimestamp (int64_t timestamp) |
| int64_t | getAttachmentTimestamp () const |
| void | setAttachmentTimestamp (int64_t timestamp) |
| int64_t | getAttachmentTimestampLowerBound () const |
| void | setAttachmentTimestampLowerBound (int64_t timestamp) |
| int64_t | getAttachmentTimestampUpperBound () const |
| void | setAttachmentTimestampUpperBound (int64_t timestamp) |
| int64_t | getCurrentIndex () const |
| void | setCurrentIndex (int64_t currentIndex) |
| int64_t | getLastIndex () const |
| void | setLastIndex (int64_t lastIndex) |
| const Types::Trytes & | getBundle () const |
| void | setBundle (const Types::Trytes &bundle) |
| const Types::Trytes & | getTrunkTransaction () const |
| void | setTrunkTransaction (const Types::Trytes &trunkTransaction) |
| const Types::Trytes & | getBranchTransaction () const |
| void | setBranchTransaction (const Types::Trytes &branchTransaction) |
| const Types::Trytes & | getNonce () const |
| void | setNonce (const Types::Trytes &nonce) |
| bool | getPersistence () const |
| void | setPersistence (bool persistence) |
| bool | operator== (const Transaction &rhs) const |
| bool | operator!= (const Transaction &rhs) const |
| Types::Trytes | toTrytes () const |
| void | initFromTrytes (const Types::Trytes &trytes) |
Transaction model.
|
default |
Default ctor.
|
default |
Default dtor.
|
explicit |
Initializes a new instance of the Transaction class from trytes.
| trytes | The trytes. |
| IOTA::Models::Transaction::Transaction | ( | const Types::Trytes & | signatureFragments, |
| int64_t | currentIndex, | ||
| int64_t | lastIndex, | ||
| const Types::Trytes & | nonce, | ||
| const Types::Trytes & | hash, | ||
| int64_t | timestamp, | ||
| const Types::Trytes & | trunkTransaction, | ||
| const Types::Trytes & | branchTransaction, | ||
| const Models::Address & | address, | ||
| int64_t | value, | ||
| const Types::Trytes & | bundle, | ||
| const Models::Tag & | tag, | ||
| int64_t | attachmentTimestamp, | ||
| int64_t | attachmentTimestampLowerBound, | ||
| int64_t | attachmentTimestampUpperBound | ||
| ) |
Initializes a new instance of the Transaction class.
| signatureFragments | Signature fragments of the transaction. |
| currentIndex | Index of the transaction in the bundle. |
| lastIndex | Last transaction index of the bundle. |
| nonce | Nonce. |
| hash | Hash of the transaction. |
| timestamp | Timestamp at which transaction was issued. |
| trunkTransaction | Trunk transaction hash. |
| branchTransaction | Branch transaction hash. |
| address | Address of the transaction. |
| value | Value sent. |
| bundle | Bundle hash. |
| tag | Tag of the transaction. |
| attachmentTimestamp | Attachment timestamp. |
| attachmentTimestampLowerBound | Lower bound of the attachment timestamp. |
| attachmentTimestampUpperBound | Index of the transaction in the bundle. |
| IOTA::Models::Transaction::Transaction | ( | const Models::Address & | address, |
| int64_t | value, | ||
| const Models::Tag & | tag, | ||
| int64_t | timestamp, | ||
| int64_t | attachmentTimestamp = 0, |
||
| int64_t | attachmentTimestampLowerBound = 0, |
||
| int64_t | attachmentTimestampUpperBound = 0 |
||
| ) |
Initializes a new instance of the Transaction class.
| address | Address of the transaction. |
| value | Value sent. |
| tag | Tag of the transaction. |
| timestamp | Timestamp at which transaction was issued. |
| attachmentTimestamp | Attachment timestamp. |
| attachmentTimestampLowerBound | Lower bound of the attachment timestamp. |
| attachmentTimestampUpperBound | Index of the transaction in the bundle. |
| const Models::Address& IOTA::Models::Transaction::getAddress | ( | ) | const |
Get the address.
| int64_t IOTA::Models::Transaction::getAttachmentTimestamp | ( | ) | const |
Get the attachment timestamp.
| int64_t IOTA::Models::Transaction::getAttachmentTimestampLowerBound | ( | ) | const |
Get the attachment timestamp lower bound.
| int64_t IOTA::Models::Transaction::getAttachmentTimestampUpperBound | ( | ) | const |
Get the attachment timestamp upper bound.
| const Types::Trytes& IOTA::Models::Transaction::getBranchTransaction | ( | ) | const |
Get the branch transaction.
| const Types::Trytes& IOTA::Models::Transaction::getBundle | ( | ) | const |
Get the bundle.
| int64_t IOTA::Models::Transaction::getCurrentIndex | ( | ) | const |
Get the current index.
| const Types::Trytes& IOTA::Models::Transaction::getHash | ( | ) | const |
Get the hash.
| int64_t IOTA::Models::Transaction::getLastIndex | ( | ) | const |
Get the last index.
| const Types::Trytes& IOTA::Models::Transaction::getNonce | ( | ) | const |
Get the nonce.
| const Models::Tag& IOTA::Models::Transaction::getObsoleteTag | ( | ) | const |
Get the obsolete tag.
| bool IOTA::Models::Transaction::getPersistence | ( | ) | const |
Get the persistence.
| const Types::Trytes& IOTA::Models::Transaction::getSignatureFragments | ( | ) | const |
Get the signature fragments.
| const Models::Tag& IOTA::Models::Transaction::getTag | ( | ) | const |
Get the tag.
| int64_t IOTA::Models::Transaction::getTimestamp | ( | ) | const |
Get the timestamp.
| const Types::Trytes& IOTA::Models::Transaction::getTrunkTransaction | ( | ) | const |
Get the trunk transaction.
| int64_t IOTA::Models::Transaction::getValue | ( | ) | const |
Get the value.
| void IOTA::Models::Transaction::initFromTrytes | ( | const Types::Trytes & | trytes | ) |
Initializes a new instance of the Transaction class based on tryte string.
| trytes | The trytes from which to initialize the transaction. |
| bool IOTA::Models::Transaction::isTailTransaction | ( | ) | const |
| bool IOTA::Models::Transaction::operator!= | ( | const Transaction & | rhs | ) | const |
Comparison operator.
| rhs | other object to compare with. |
| bool IOTA::Models::Transaction::operator== | ( | const Transaction & | rhs | ) | const |
Comparison operator.
| rhs | other object to compare with. |
| void IOTA::Models::Transaction::setAddress | ( | const Models::Address & | address | ) |
Set the address.
| address | The address. |
| void IOTA::Models::Transaction::setAttachmentTimestamp | ( | int64_t | timestamp | ) |
Set the attachment timestamp.
| timestamp | The attachment timestamp. |
| void IOTA::Models::Transaction::setAttachmentTimestampLowerBound | ( | int64_t | timestamp | ) |
Set the attachment timestamp lower bound.
| timestamp | The attachment timestamp lower bound. |
| void IOTA::Models::Transaction::setAttachmentTimestampUpperBound | ( | int64_t | timestamp | ) |
Set the attachment timestamp upper bound.
| timestamp | The attachment timestamp upper bound. |
| void IOTA::Models::Transaction::setBranchTransaction | ( | const Types::Trytes & | branchTransaction | ) |
Set the branch transaction.
| branchTransaction | The branch transaction. |
| void IOTA::Models::Transaction::setBundle | ( | const Types::Trytes & | bundle | ) |
Set the bundle.
| bundle | The bundle. |
| void IOTA::Models::Transaction::setCurrentIndex | ( | int64_t | currentIndex | ) |
Set the current index.
| currentIndex | The current index. |
| void IOTA::Models::Transaction::setHash | ( | const Types::Trytes & | hash | ) |
Set the hash.
| hash | The hash. |
| void IOTA::Models::Transaction::setLastIndex | ( | int64_t | lastIndex | ) |
Set the last index.
| lastIndex | The last index. |
| void IOTA::Models::Transaction::setNonce | ( | const Types::Trytes & | nonce | ) |
Set the nonce.
| nonce | The trunk nonce. |
| void IOTA::Models::Transaction::setObsoleteTag | ( | const Models::Tag & | tag | ) |
Set the obsolete tag.
| tag | The obsolete tag. |
| void IOTA::Models::Transaction::setPersistence | ( | bool | persistence | ) |
Set the persistence.
| persistence | The persistence. |
| void IOTA::Models::Transaction::setSignatureFragments | ( | const Types::Trytes & | signatureFragments | ) |
Set the signature fragments.
| signatureFragments | The signature fragments. |
| void IOTA::Models::Transaction::setTag | ( | const Models::Tag & | tag | ) |
Set the tag.
| tag | The tag. |
| void IOTA::Models::Transaction::setTimestamp | ( | int64_t | timestamp | ) |
Set the timestamp.
| timestamp | The timestamp. |
| void IOTA::Models::Transaction::setTrunkTransaction | ( | const Types::Trytes & | trunkTransaction | ) |
Set the trunk transaction.
| trunkTransaction | The trunk transaction. |
| void IOTA::Models::Transaction::setValue | ( | int64_t | value | ) |
Set the value.
| value | The value. |
| Types::Trytes IOTA::Models::Transaction::toTrytes | ( | ) | const |
Converts the transaction to the corresponding trytes representation.
1.8.14