RPC Browser


Command: signmessage


Arguments

signmessage "address" "message"

Sign a message with the private key of an address

Arguments:
1. "address"         (string, required) The litecoin address to use for the private key.
2. "message"         (string, required) The message to create a signature of.

Result:
"signature"          (string) The signature of the message encoded in base 64

Examples:

Unlock the wallet for 30 seconds
> litecoin-cli walletpassphrase "mypassphrase" 30

Create the signature
> litecoin-cli signmessage "LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2" "my message"

Verify the signature
> litecoin-cli verifymessage "LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2" "signature" "my message"

As json rpc
> curl --user myusername --data-binary '{"jsonrpc": "1.0", "id":"curltest", "method": "signmessage", "params": ["LEr4hNAefWYhBMgxCFP2Po1NPrUeiK8kM2", "my message"] }' -H 'content-type: text/plain;' http://127.0.0.1:9332/

Blockchain (22)


Control (5)


Generating (2)


Mining (5)


Network (12)


Rawtransactions (8)


Util (6)


Wallet (48)