[#Descriptor-ScriptSize]
= xref:Descriptor.adoc[Descriptor]::ScriptSize
:relfileprefix: ../
:mrdocs:

Get the size of the scriptPubKey for this descriptor&period;

== Synopsis

Declared in `&lt;script&sol;descriptor&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
virtual
std::optional&lt;int64&lowbar;t&gt;
ScriptSize() const = 0;
----

== Return Value

The scriptPubKey size in bytes, or nullopt if unknown&period;


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