[#EnsureAnyNodeContext]
= EnsureAnyNodeContext
:mrdocs:

Extract the node context from an opaque RPC context, asserting it is present&period;

== Synopsis

Declared in `&lt;rpc&sol;server&lowbar;util&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:node/NodeContext.adoc[node::NodeContext]&
EnsureAnyNodeContext(std::any const& context);
----

== Return Value

The node context stored in `context&period;`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The opaque per&hyphen;connection context&period;
|===


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