[#btck-TransactionView-ToBytes]
= xref:btck.adoc[btck]::xref:btck/TransactionView.adoc[TransactionView]::ToBytes
:relfileprefix: ../../
:mrdocs:

Serializes the transaction to its raw bytes&period;

== Synopsis

Declared in `&lt;kernel&sol;bitcoinkernel&lowbar;wrapper&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
std::vector&lt;std::byte&gt;
ToBytes() const;
----

== Return Value

The serialized transaction bytes&period;


[.small]#Created with https://www.mrdocs.com[MrDocs]#
