RPC Browser


Command: listlockunspent


Arguments
None

listlockunspent

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

Result:
[
  {
    "txid" : "transactionid",     (string) The transaction id locked
    "vout" : n                      (numeric) The vout value
  }
  ,...
]

Examples:

List the unspent transactions
> litecoin-cli listunspent 

Lock an unspent transaction
> litecoin-cli lockunspent false "[{\"txid\":\"daaf44ec1e64e66ffda4a7e195ea60d5c8c8b602fc6bf22928582d3ff2530462\",\"vout\":1}]"

List the locked transactions
> litecoin-cli listlockunspent 

Unlock the transaction again
> litecoin-cli lockunspent true "[{\"txid\":\"daaf44ec1e64e66ffda4a7e195ea60d5c8c8b602fc6bf22928582d3ff2530462\",\"vout\":1}]"

As a json rpc call
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "listlockunspent", "params": [] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/

Blockchain (22)


Control (5)


Generating (2)


Mining (5)


Network (12)


Rawtransactions (8)


Util (6)


Wallet (48)