signmessage - Spacecoin RPC Docs


signmessage "t-addr" "message"

Sign a message with the private key of a t-addr

Arguments:
1. "t-addr"  (string, required) The transparent 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
> spacecoin-cli walletpassphrase "mypassphrase" 30

Create the signature
> spacecoin-cli signmessage "RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPV" "my message"

Verify the signature
> spacecoin-cli verifymessage "RD6GgnrMpPaTSMn8vai6yiGA7mN4QGPV" "signature" "my message"

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


Learn more about spacecoin at spacecoin.network.
Docs generated by spacecoin v0.6.1.
Find this github repo at spacecoinSPACE/spacecoin-rpc-docs.

Spacecoin Logo



Auction











Lotto