Bitcoin ABC  0.22.12
P2P Digital Currency
Classes | Typedefs | Functions | Variables
transaction.h File Reference
#include <amount.h>
#include <feerate.h>
#include <primitives/txid.h>
#include <script/script.h>
#include <serialize.h>
Include dependency graph for transaction.h:
This graph shows which files directly or indirectly include this file:

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

typedef std::shared_ptr< const CTransactionCTransactionRef
 

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)
 

Variables

static const int SERIALIZE_TRANSACTION = 0x00
 

Typedef Documentation

◆ CTransactionRef

typedef std::shared_ptr<const CTransaction> CTransactionRef

Definition at line 338 of file transaction.h.

Function Documentation

◆ MakeTransactionRef() [1/2]

static CTransactionRef MakeTransactionRef ( )
inlinestatic

Definition at line 339 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 343 of file transaction.h.

◆ SerializeTransaction()

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

Definition at line 200 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 187 of file transaction.h.

Here is the caller graph for this function:

Variable Documentation

◆ SERIALIZE_TRANSACTION

const int SERIALIZE_TRANSACTION = 0x00
static

Definition at line 16 of file transaction.h.