Skip to content

Lockunspent

lockunspent

Updates list of temporarily unspendable outputs.

Arguments

Position Name Type Required Default Description
2 transactions json array Optional empty array) A json array of objects. Each object the txid (string) vout (numeric See CLI help for details

Result

true|false    (boolean) Whether the command was successful or not

Examples

List the unspent transactions
 raptoreum-cli listunspent
Lock an unspent transaction
 raptoreum-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
List the locked transactions
 raptoreum-cli listlockunspent
Unlock the transaction again
 raptoreum-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"
As a JSON-RPC call
 curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "lockunspent", "params": [false, "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"] }' -H 'content-type: text/plain;' http://127.0.0.1:10225/