Skip to content
DMD coin

listlockunspent

Wallet command of DebitMyData Core 1.3.5.

listlockunspent

Returns list of temporarily unspendable outputs.
See the lockunspent call to lock and unlock transactions for spending.

[ (json array)
{ (json object)
"txid" : "hex", (string) The transaction id locked
"vout" : n (numeric) The vout value
},
...
]

List the unspent transactions

Terminal window
debitmydata-cli listunspent

Lock an unspent transaction

Terminal window
debitmydata-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"

List the locked transactions

Terminal window
debitmydata-cli listlockunspent

Unlock the transaction again

Terminal window
debitmydata-cli lockunspent true "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]"

As a JSON-RPC call

Terminal window
curl --user myusername --data-binary '{"jsonrpc": "2.0", "id": "curltest", "method": "listlockunspent", "params": []}' -H 'content-type: application/json' http://127.0.0.1:18557/