[#wallet-EnsureWalletContext] = xref:wallet.adoc[wallet]::EnsureWalletContext :relfileprefix: ../ :mrdocs: Retrieves the WalletContext stored in an RPC context, throwing if absent. == Synopsis Declared in `<wallet/rpc/util.h>` [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. == Parameters [cols="1,4"] |=== | Name| Description | *context* | The type‐erased RPC context. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#