encryptmessage "smileycoinaddress" "message"
Encrypt 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 encrypt.
"signature" (string) The encrypted message encoded in base 64
Unlock the wallet for 30 seconds
smileycoin-cli walletpassphrase "mypassphrase" 30
Encrypt the message
smileycoin-cli encryptmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ" "my message"
Decrypt the message
smileycoin-cli decryptmessage "1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ" "?"
As json rpc
curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "encryptmessage", "params": ["1D1ZrZNe3JUo7ZycKEYQQiQAWd9y54F4XZ", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/