decryptmessage "smileycoinaddress" "message"
decrypt a message with the public key of an address
"smileycoinaddress" (string, required)
The smileycoin address to use for the public key.
"message" (string, required)
The message to decrypt.
"signature" (string) The decrypted message encoded in base 64
Unlock the wallet for 30 seconds
smileycoin-cli walletpassphrase "mypassphrase" 30
decrypt the message
smileycoin-cli decryptmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ" "my message"
Decrypt the message
smileycoin-cli decryptmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ" "?"
As json rpc
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "decryptmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/