encryptwallet - Particl RPC
encryptwallet "passphrase" Encrypts the wallet with 'passphrase'. This is for first time encryption. After this, any calls that interact with private keys such as sending or signing will require the passphrase to be set prior the making these calls. Use the walletpassphrase call for this, and then walletlock call. If the wallet is already encrypted, use the walletpassphrasechange call. Note that this will shutdown the server. Arguments: 1. "passphrase" (string) The pass phrase to encrypt the wallet with. It must be at least 1 character, but should be long. Examples: Encrypt your wallet > particl-cli encryptwallet "my pass phrase" Now set the passphrase to use the wallet, such as for signing or sending particl > particl-cli walletpassphrase "my pass phrase" Now we can do something like sign > particl-cli signmessage "address" "test message" Now lock the wallet again by removing the passphrase > particl-cli walletlock As a json rpc call > curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptwallet", "params": ["my pass phrase"] }' -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