[#wallet-CWallet-LockCoin] = xref:wallet.adoc[wallet]::xref:wallet/CWallet.adoc[CWallet]::LockCoin :relfileprefix: ../../ :mrdocs: Lock an output so it is not selected for spending. == Synopsis Declared in `<wallet/wallet.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- [[requires_capability(0x7fb955bcf348), requires_capability(0x7fb94db83c68), requires_capability(0x7fb95ab13ae8), requires_capability(0x7fb959fb06c8), requires_capability(0x7fb956cba958)]] bool LockCoin( xref:COutPoint.adoc[COutPoint] const& output, bool persist); ---- == Return Value true if the lock was recorded. == Parameters [cols="1,4"] |=== | Name| Description | *output* | The outpoint to lock. | *persist* | Whether to persist the lock to disk. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#