[#miniscript-Node-GetWitnessSize] = xref:miniscript.adoc[miniscript]::xref:miniscript/Node.adoc[Node]::GetWitnessSize :relfileprefix: ../../ :mrdocs: Return the maximum size in bytes of a witness to satisfy this script non‐malleably. Note this does not include the witness script push. == Synopsis Declared in `<script/miniscript.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<uint32_t> GetWitnessSize() const; ---- == Return Value The witness size in bytes, or std::nullopt if no satisfaction exists. [.small]#Created with https://www.mrdocs.com[MrDocs]#