Bitcoin ABC 0.30.7
P2P Digital Currency
Classes | Typedefs | Functions
transaction.h File Reference
#include <consensus/amount.h>
#include <feerate.h>
#include <primitives/txid.h>
#include <script/script.h>
#include <serialize.h>
Include dependency graph for transaction.h:

Go to the source code of this file.

Classes

class  COutPoint
 An outpoint - a combination of a transaction hash and an index n into its vout. More...
 
class  CTxIn
 An input of a transaction. More...
 
class  CTxOut
 An output of a transaction. More...
 
class  CTransaction
 The basic transaction that is broadcasted on the network and contained in blocks. More...
 
class  CMutableTransaction
 A mutable version of CTransaction. More...
 
struct  PrecomputedTransactionData
 Precompute sighash midstate to avoid quadratic hashing. More...
 

Typedefs

using CTransactionRef = std::shared_ptr< const CTransaction >
 

Functions

template<typename Stream , typename TxType >
void UnserializeTransaction (TxType &tx, Stream &s)
 Basic transaction serialization format: More...
 
template<typename Stream , typename TxType >
void SerializeTransaction (const TxType &tx, Stream &s)
 
static CTransactionRef MakeTransactionRef ()
 
template<typename Tx >
static CTransactionRef MakeTransactionRef (Tx &&txIn)
 

Typedef Documentation

◆ CTransactionRef

using CTransactionRef = std::shared_ptr<const CTransaction>

Definition at line 315 of file transaction.h.

Function Documentation

◆ MakeTransactionRef() [1/2]

static CTransactionRef MakeTransactionRef ( )
inlinestatic

Definition at line 316 of file transaction.h.

Here is the caller graph for this function:

◆ MakeTransactionRef() [2/2]

template<typename Tx >
static CTransactionRef MakeTransactionRef ( Tx &&  txIn)
inlinestatic

Definition at line 320 of file transaction.h.

◆ SerializeTransaction()

template<typename Stream , typename TxType >
void SerializeTransaction ( const TxType &  tx,
Stream &  s 
)
inline

Definition at line 181 of file transaction.h.

Here is the caller graph for this function:

◆ UnserializeTransaction()

template<typename Stream , typename TxType >
void UnserializeTransaction ( TxType &  tx,
Stream &  s 
)
inline

Basic transaction serialization format:

  • int32_t nVersion
  • std::vector<CTxIn> vin
  • std::vector<CTxOut> vout
  • uint32_t nLockTime

Definition at line 168 of file transaction.h.

Here is the caller graph for this function: