SerializeTransaction

Writes a transaction to a stream, optionally including witness data.

Synopsis

Declared in <primitives/transaction.h>

template<
    typename Stream,
    typename TxType>
void
SerializeTransaction(
    TxType const& tx,
    Stream& s,
    TransactionSerParams const& params);

Parameters

NameDescription
txThe transaction to serialize.
sThe stream to write to.
paramsParameters controlling whether witness data is written.