Lock an output so it is not selected for spending.

Synopsis

Declared in <wallet/wallet.h>

[[requires_capability(0x7f2e1e598478), requires_capability(0x7f2e11aa9238), requires_capability(0x7f2e169ff028), requires_capability(0x7f2e15f2e4c8), requires_capability(0x7f2e12c6d158)]]
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