Writes a transaction to a stream, optionally including witness data.
Declared in <primitives/transaction.h>
template<
typename Stream,
typename TxType>
void
SerializeTransaction(
TxType const& tx,
Stream& s,
TransactionSerParams const& params);
| Name | Description |
|---|---|
| tx | The transaction to serialize. |
| s | The stream to write to. |
| params | Parameters controlling whether witness data is written. |