Fill a JSON object with a human‐readable description of a script.
Synopsis
Declared in <core_io.h>
void
ScriptToUniv(
CScript const& script,
UniValue& out,
bool include_hex = true,
bool include_address = false,
SigningProvider const* provider = nullptr);
Parameters
Name |
Description |
script |
Script to describe. |
out |
JSON object populated with the script's fields. |
include_hex |
When true, include the raw script as a hex string. |
include_address |
When true, include the decoded address when the script has one. |
provider |
Optional source of keys and scripts used to resolve addresses. |
Created with MrDocs