lockunspent - Divi 2.5.1 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 DIVs. 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 > divi-cli listunspent Lock an unspent transaction > divi-cli lockunspent false "[{\"txid\":\"a08e6907dbbd3d809776dbfc5d82e371b764ed838b5655e72f463568df1aadf0\",\"vout\":1}]" List the locked transactions > divi-cli listlockunspent Unlock the transaction again > divi-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:51473/
Maintained by DiviDomains; modified by: Bert Shuler;license of the docs is MIT (see divi repo), license of the scripts and webpage is also MIT (github repo)
Note it uses a mainnet divi node
Blockchain
Divi
allocatefunds
ban
broadcaststartmasternode
clearbanned
createmasternodekey
fundmasternode
getmasternodecount
getmasternodeoutputs
getmasternodescores
getmasternodestatus
getmasternodewinners
Obfuscation,
clearbanned
listmasternodeconf
listmasternodes
masternode
masternodecurrent
mnsync
setupmasternode
spork
startmasternode
verifymasternodesetup
ban
broadcaststartmasternode
clearbanned
createmasternodekey
fundmasternode
getmasternodecount
getmasternodeoutputs
getmasternodescores
getmasternodestatus
getmasternodewinners
Obfuscation,
clearbanned
listmasternodeconf
listmasternodes
masternode
masternodecurrent
mnsync
setupmasternode
spork
startmasternode
verifymasternodesetup
Generating
Getinvalid
Rawtransactions
Wallet
addmultisigaddress
addvault
backupwallet
bip38decrypt
bip38encrypt
dumphdinfo
dumpprivkey
dumpwallet
encryptwallet
fundvault
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getstakingstatus
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
reclaimvaultfunds
removevault
sendfrom
sendmany
sendtoaddress
setaccount
signmessage
walletverify
addvault
backupwallet
bip38decrypt
bip38encrypt
dumphdinfo
dumpprivkey
dumpwallet
encryptwallet
fundvault
getaccount
getaccountaddress
getaddressesbyaccount
getbalance
getnewaddress
getrawchangeaddress
getreceivedbyaccount
getreceivedbyaddress
getstakingstatus
gettransaction
getunconfirmedbalance
getwalletinfo
importaddress
importprivkey
importwallet
keypoolrefill
listaccounts
listaddressgroupings
listlockunspent
listreceivedbyaccount
listreceivedbyaddress
listsinceblock
listtransactions
listunspent
lockunspent
move
reclaimvaultfunds
removevault
sendfrom
sendmany
sendtoaddress
setaccount
signmessage
walletverify