[#Descriptor-ScriptSize] = xref:Descriptor.adoc[Descriptor]::ScriptSize :relfileprefix: ../ :mrdocs: Get the size of the scriptPubKey for this descriptor. == Synopsis Declared in `<script/descriptor.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- virtual std::optional<int64_t> ScriptSize() const = 0; ---- == Return Value The scriptPubKey size in bytes, or nullopt if unknown. [.small]#Created with https://www.mrdocs.com[MrDocs]#