Skip to contents

Prevents specific UTXOs from being spent in automated transactions, or releases them if they were previously locked.

Usage

mc_lock_unspent(conn, unlock, outputs = NULL)

Arguments

conn

A connection object to the MultiChain node.

unlock

Logical. If TRUE, unlocks the outputs; if FALSE, locks them.

outputs

Optional list of outputs to (un)lock. Expected format: list(list(txid="id", vout=0), ...). If empty and unlock=TRUE, all outputs are unlocked.

Value

Logical TRUE on success.