lockunspent - Hush 3.10.3 RPC
lockunspent unlock [{"txid":"txid","vout":n},...] Updates list of temporarily unspendable outputs. Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs. A locked transaction output will not be chosen by automatic coin selection, when spending HUSH3. Locks are stored in memory only. Nodes start with zero locked outputs, and the locked output list is always cleared (by virtue of process exit) when a node stops or fails. Also see the listunspent call Arguments: 1. unlock (boolean, required) Whether to unlock (true) or lock (false) the specified transactions 2. "transactions" (string, required) A json array of objects. Each object the txid (string) vout (numeric) [ (json array of json objects) { "txid":"id", (string) The transaction id "vout": n (numeric) The output number } ,... ] Result: true|false (boolean) Whether the command was successful or not Examples: List the unspent transactions > hush-cli listunspent Lock an unspent transaction > hush-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]" List the locked transactions > hush-cli listlockunspent Unlock the transaction again > hush-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:18031/
Maintained by The Hush Developers
Welcome to the Hush full node RPC developer documentation!!! You finally made it.
Addressindex
Blockchain
coinsupply
getbestblockhash
getblock
getblockchaininfo
getblockcount
getblockhash
getblockhashes
getblockheader
getblockmerkletree
getchaintips
getchaintxstats
getdifficulty
getmempoolinfo
getrawmempool
getspentinfo
gettxout
gettxoutproof
gettxoutsetinfo
kvsearch
kvupdate
minerids
notaries
verifychain
verifytxoutproof
getbestblockhash
getblock
getblockchaininfo
getblockcount
getblockhash
getblockhashes
getblockheader
getblockmerkletree
getchaintips
getchaintxstats
getdifficulty
getmempoolinfo
getrawmempool
getspentinfo
gettxout
gettxoutproof
gettxoutsetinfo
kvsearch
kvupdate
minerids
notaries
verifychain
verifytxoutproof
Crosschain
Generating
Mining
NSPV
Network
Rawtransactions
Util
Wallet
abortrescan
addmultisigaddress
backupwallet
cleanwallettransactions
convertpassphrase
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getalldata
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getrescaninfo
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddresses
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
opreturn_burn
rescan
resendwallettransactions
sendfrom
sendmany
sendtoaddress
setaccount
setpubkey
settxfee
signmessage
z_anonsetblockdelta
z_anonsettxdelta
z_consolidationstatus
z_exportkey
z_exportviewingkey
z_exportwallet
z_getbalance
z_getbalances
z_getinfo
z_getnewaddress
z_getnotescount
z_getoperationresult
z_getoperationstatus
z_getstats
z_gettotalbalance
z_importkey
z_importviewingkey
z_importwallet
z_listaddresses
z_listnullifiers
z_listoperationids
z_listreceivedaddress
z_listreceivedbyaddress
z_listsentbyaddress
z_listunspent
z_mergetoaddress
z_sendmany
z_shieldcoinbase
z_sweepstatus
z_viewtransaction
addmultisigaddress
backupwallet
cleanwallettransactions
convertpassphrase
dumpprivkey
dumpwallet
encryptwallet
getaccount
getaccountaddress
getaddressesbyaccount
getalldata
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getrescaninfo
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddresses
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
opreturn_burn
rescan
resendwallettransactions
sendfrom
sendmany
sendtoaddress
setaccount
setpubkey
settxfee
signmessage
z_anonsetblockdelta
z_anonsettxdelta
z_consolidationstatus
z_exportkey
z_exportviewingkey
z_exportwallet
z_getbalance
z_getbalances
z_getinfo
z_getnewaddress
z_getnotescount
z_getoperationresult
z_getoperationstatus
z_getstats
z_gettotalbalance
z_importkey
z_importviewingkey
z_importwallet
z_listaddresses
z_listnullifiers
z_listoperationids
z_listreceivedaddress
z_listreceivedbyaddress
z_listsentbyaddress
z_listunspent
z_mergetoaddress
z_sendmany
z_shieldcoinbase
z_sweepstatus
z_viewtransaction