Lock an output so it is not selected for spending.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7fbc76bfd288), requires_capability(0x7fbc81b76c48), requires_capability(0x7fbc7e014ac8), requires_capability(0x7fbc7e243f78), requires_capability(0x7fbc8e714bb8)]]
bool
LockCoin(
    COutPoint const& output,
    bool persist);

Return Value

true if the lock was recorded.

Parameters

Name

Description

output

The outpoint to lock.

persist

Whether to persist the lock to disk.

Created with MrDocs