[#miniscript-Node-GetStackSize] = xref:miniscript.adoc[miniscript]::xref:miniscript/Node.adoc[Node]::GetStackSize :relfileprefix: ../../ :mrdocs: Return the maximum number of stack elements needed to satisfy this script non‐malleably. == Synopsis Declared in `<script/miniscript.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- std::optional<uint32_t> GetStackSize() const; ---- == Return Value The stack element count, or std::nullopt if no satisfaction exists. [.small]#Created with https://www.mrdocs.com[MrDocs]#