Lock an output so it is not selected for spending.
Declared in <wallet/wallet.h>
[[requires_capability(0x7ff3720ef8d8), requires_capability(0x7ff365f1f8d8), requires_capability(0x7ff35de5e288), requires_capability(0x7ff35efe2d68), requires_capability(0x7ff366fcf348)]]
bool
LockCoin(
COutPoint const& output,
bool persist);
true if the lock was recorded.
| Name | Description |
|---|---|
| output | The outpoint to lock. |
| persist | Whether to persist the lock to disk. |