[#wallet-EnsureWalletContext]
= xref:wallet.adoc[wallet]::EnsureWalletContext
:relfileprefix: ../
:mrdocs:

Retrieves the WalletContext stored in an RPC context, throwing if absent&period;

== Synopsis

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

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

== Return Value

A reference to the wallet context&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *context*
| The type&hyphen;erased RPC context&period;
|===


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