[#EvalScript-0f] = EvalScript :mrdocs: Evaluate a script against a stack using default execution state. == Synopsis Declared in `<script/interpreter.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- bool EvalScript( std::vector<std::vector<unsigned char>>& stack, xref:CScript.adoc[CScript] const& script, xref:script_verify_flags.adoc[script_verify_flags] flags, xref:BaseSignatureChecker.adoc[BaseSignatureChecker] const& checker, xref:SigVersion.adoc[SigVersion] sigversion, xref:ScriptError.adoc[ScriptError]* error = nullptr); ---- == Return Value `true` if the script executed successfully. == Parameters [cols="1,4"] |=== | Name| Description | *stack* | The initial and resulting stack of byte‐vector elements. | *script* | The script to execute. | *flags* | The active script verification flags. | *checker* | The signature checker for CHECKSIG and lock‐time opcodes. | *sigversion* | The signature version selecting execution semantics. | *error* | Set to the script error when evaluation fails. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#