lockunspent
lockunspent unlock ( [{"txid":"hex","vout":n},...] )
Updates the list of temporarily unspendable outputs.
You can temporarily lock (unlock=false
) or unlock (unlock=true
) specified transaction outputs.
If no specific outputs are provided when unlocking, all currently locked transaction outputs will be unlocked.
A locked transaction output will not be used in automatic coin selection when spending BitcoinEvos. However, manually selected coins are automatically unlocked.
Locks are stored in memory only. Nodes start with zero locked outputs, and the list of locked outputs is always cleared when a node stops or exits.
For more information, refer to the listunspent
call.
Argument #1 – unlock
Type: boolean, required
Whether to unlock (true) or lock (false) the specified transactions
Argument #2 – transactions
Type: json array, optional, default=empty array
The transaction outputs and within each, the txid (string) vout (numeric).
Result
Name |
Type |
Description |
---|---|---|
true|false |
boolean |
Whether the command was successful or not |
Examples
List the unspent transactions:
Lock an unspent transaction:
List the locked transactions:
Unlock the transaction again:
As a JSON-RPC call: