[#CTransaction-HasWitness]
= xref:CTransaction.adoc[CTransaction]::HasWitness
:relfileprefix: ../
:mrdocs:

Returns true when any input carries witness data&period;

== Synopsis

Declared in `&lt;primitives&sol;transaction&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
bool
HasWitness() const;
----

== Return Value

True if the transaction has witness data&period;


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