[#btck-Transaction-ToBytes] = xref:btck.adoc[btck]::xref:btck/Transaction.adoc[Transaction]::ToBytes :relfileprefix: ../../ :mrdocs: Serializes the transaction to its raw bytes. == Synopsis Declared in `<kernel/bitcoinkernel_wrapper.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::vector<std::byte> ToBytes() const; ---- == Return Value The serialized transaction bytes. [.small]#Created with https://www.mrdocs.com[MrDocs]#