lockunspent - Particl RPC
lockunspent unlock ([{"txid":"txid","vout":n},...]) Updates list of temporarily unspendable outputs. Temporarily lock (unlock=false) or unlock (unlock=true) specified transaction outputs. If no transaction outputs are specified when unlocking then all current locked transaction outputs are unlocked. A locked transaction output will not be chosen by automatic coin selection, when spending PART. 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" (array, optional) 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 > particl-cli listunspent Lock an unspent transaction > particl-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]" List the locked transactions > particl-cli listlockunspent Unlock the transaction again > particl-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:51935/
This is a website, created out of frustration with uncomplete and outdated Particl Core RPC documentation online.
Particl version: 0.16.0.1
Note that the RPC is from a regtest node (for completeness), so it includes some additional calls that a regular node doesn't have.
Anon
Blockchain
getbestblockhash
getblock
getblockchaininfo
getblockcount
getblockdeltas
getblockhash
getblockhashes
getblockheader
getchaintips
getchaintxstats
getdifficulty
getmempoolancestors
getmempooldescendants
getmempoolentry
getmempoolinfo
getrawmempool
getspentinfo
gettxout
gettxoutproof
gettxoutsetinfo
gettxoutsetinfobyscript
preciousblock
pruneblockchain
savemempool
verifychain
verifytxoutproof
getblock
getblockchaininfo
getblockcount
getblockdeltas
getblockhash
getblockhashes
getblockheader
getchaintips
getchaintxstats
getdifficulty
getmempoolancestors
getmempooldescendants
getmempoolentry
getmempoolinfo
getrawmempool
getspentinfo
gettxout
gettxoutproof
gettxoutsetinfo
gettxoutsetinfobyscript
preciousblock
pruneblockchain
savemempool
verifychain
verifytxoutproof
Control
Generating
Governance
Mnemonic
Network
Rawtransactions
Smsg
Usbdevice
Util
Wallet
abandontransaction
abortrescan
addmultisigaddress
backupwallet
buildscript
bumpfee
clearwallettransactions
createsignaturewithwallet
debugwallet
deriverangekeys
dumpprivkey
dumpwallet
encryptwallet
extkey
extkeyaltversion
extkeygenesisimport
extkeyimportmaster
filteraddresses
filtertransactions
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getcoldstakinginfo
getnewaddress
getnewextaddress
getnewstealthaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getstakinginfo
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importmulti
importprivkey
importprunedfunds
importpubkey
importstealthaddress
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
liststealthaddresses
listtransactions
listunspent
listunspentanon
listunspentblind
listwallets
lockunspent
manageaddressbook
move
removeprunedfunds
rescanblockchain
reservebalance
rewindchain
scanchain
sendanontoanon
sendanontoblind
sendanontopart
sendblindtoanon
sendblindtoblind
sendblindtopart
sendmany
sendparttoanon
sendparttoblind
sendtoaddress
sendtypeto
setaccount
settxfee
signmessage
walletlock
walletpassphrase
walletpassphrasechange
walletsettings
abortrescan
addmultisigaddress
backupwallet
buildscript
bumpfee
clearwallettransactions
createsignaturewithwallet
debugwallet
deriverangekeys
dumpprivkey
dumpwallet
encryptwallet
extkey
extkeyaltversion
extkeygenesisimport
extkeyimportmaster
filteraddresses
filtertransactions
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getcoldstakinginfo
getnewaddress
getnewextaddress
getnewstealthaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getstakinginfo
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importmulti
importprivkey
importprunedfunds
importpubkey
importstealthaddress
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
liststealthaddresses
listtransactions
listunspent
listunspentanon
listunspentblind
listwallets
lockunspent
manageaddressbook
move
removeprunedfunds
rescanblockchain
reservebalance
rewindchain
scanchain
sendanontoanon
sendanontoblind
sendanontopart
sendblindtoanon
sendblindtoblind
sendblindtopart
sendmany
sendparttoanon
sendparttoblind
sendtoaddress
sendtypeto
setaccount
settxfee
signmessage
walletlock
walletpassphrase
walletpassphrasechange
walletsettings