[#node-GetWarningsForRpc] = xref:node.adoc[node]::GetWarningsForRpc :relfileprefix: ../ :mrdocs: RPC helper function that wraps warnings.GetMessages(). == Synopsis Declared in `<node/warnings.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- xref:UniValue.adoc[UniValue] GetWarningsForRpc( xref:node/Warnings.adoc[Warnings] const& warnings, bool use_deprecated); ---- == Description Returns a UniValue::VSTR with the latest warning if use_deprecated is set to true, or a UniValue::VARR with all warnings otherwise. == Return Value A UniValue string or array holding the active warnings. == Parameters [cols="1,4"] |=== | Name| Description | *warnings* | The warnings manager to read messages from. | *use_deprecated* | If true, return only the latest warning as a string; otherwise return all warnings as an array. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#