The basic transaction that is broadcasted on the network and contained in blocks.
More...
A transaction can contain multiple inputs and outputs.
Definition at line 98 of file transaction.hpp.
#include <transaction.hpp>
◆ HasWitness()
bool altintegration::btc::Transaction::HasWitness |
( |
| ) |
const |
|
inline |
Definition at line 128 of file transaction.hpp.
128 {
129 for (size_t i = 0; i < vin.size(); i++) {
130 if (!vin[i].scriptWitness.empty()) {
131 return true;
132 }
133 }
134 return false;
135 }
◆ Serialize()
template<typename Stream >
void altintegration::btc::Transaction::Serialize |
( |
Stream & |
s | ) |
const |
|
inline |
Definition at line 110 of file transaction.hpp.
110 {
111 SerializeTransaction(*this, s);
112 }
◆ Unserialize()
template<typename Stream >
void altintegration::btc::Transaction::Unserialize |
( |
Stream & |
s | ) |
|
|
inline |
Definition at line 115 of file transaction.hpp.
115 {
116 UnserializeTransaction(*this, s);
117 }
◆ operator!=
◆ operator==
Definition at line 119 of file transaction.hpp.
119 {
120 return a.vin == b.vin && a.vout == b.vout && a.nVersion == b.nVersion &&
121 a.nLockTime == b.nLockTime;
122 }
◆ nLockTime
uint32_t altintegration::btc::Transaction::nLockTime |
◆ nVersion
int32_t altintegration::btc::Transaction::nVersion |
◆ vin
std::vector<TxIn> altintegration::btc::Transaction::vin |
◆ vout
std::vector<TxOut> altintegration::btc::Transaction::vout |
The documentation for this struct was generated from the following file: