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

Throws an RPC error if the wallet is locked&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
void
EnsureWalletIsUnlocked(xref:wallet/CWallet.adoc[CWallet] const& wallet);
----

== Parameters

[cols="1,4"]
|===
| Name| Description
| *wallet*
| The wallet whose unlocked state is required&period;
|===


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