bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/lockunspent
Wallet

lockunspent

Updates list of temporarily unspendable outputs. Temporarily lock or unlock specified transaction outputs.

Parameters

unlockbooleanREQUIRED
Whether to unlock (true) or lock (false) the outputs
transactionsarrayoptional
Array of {"txid":"hex","vout":n} objects. Empty to unlock all.
persistentbooleanoptional
Whether to write to the wallet database. Default: false

Returns

booleanWhether the command was successful

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"lockunspent","params":[false,[{"txid":"txid","vout":0}]]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

true
← Previous
listsinceblock
Next →
psbtbumpfee

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗