Equity
Bitcoin Protocol Library
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
Network::TransactionMessage Class Reference

A transaction message. More...

#include <TransactionMessage.h>

Inheritance diagram for Network::TransactionMessage:
Network::Message P2p::Serializable

Public Member Functions

 TransactionMessage (uint8_t const *&in, size_t &size)
 
Overrides Serializable
virtual void serialize (std::vector< uint8_t > &out) const override
 
virtual json toJson () const override
 
- Public Member Functions inherited from Network::Message
 Message (char const *type)
 
std::string type () const
 Returns the type.
 

Public Attributes

int32_t version
 Transaction data format version(note, this is signed)
 
Equity::Transaction::InputList inputs
 A list of 1 or more transaction inputs or sources for coins.
 
Equity::Transaction::OutputList outputs
 A list of 1 or more transaction outputs or destinations for coins.
 
uint32_t lockTime
 The block number or timestamp at which this transaction is locked : < Value Description < 0 Not locked < < 500000000 Block number at which this transaction is locked < >= 500000000 UNIX timestamp at which this transaction is locked < If all TxIn inputs have final (0xffffffff) sequence numbers then lockTime < is irrelevant. More...
 

Static Public Attributes

static char const TYPE [] = "tx"
 Message type.
 

Detailed Description

A transaction message.

This message describes a bitcoin transaction, in reply to a get-data message.

See also
GetDataMessage
Todo:
more to do for this message

Constructor & Destructor Documentation

TransactionMessage::TransactionMessage ( uint8_t const *&  in,
size_t &  size 
)
Parameters
[in,out]inpointer to the next byte to deserialize
[in,out]sizenumber of bytes remaining in the serialized stream

Member Data Documentation

uint32_t Network::TransactionMessage::lockTime

The block number or timestamp at which this transaction is locked : < Value Description < 0 Not locked < < 500000000 Block number at which this transaction is locked < >= 500000000 UNIX timestamp at which this transaction is locked < If all TxIn inputs have final (0xffffffff) sequence numbers then lockTime < is irrelevant.

Otherwise, the transaction may not be added to a block < until after lock_time(see NLockTime).


The documentation for this class was generated from the following files: