signmessage - Pastel RPC

signmessage "t-addr" "message"

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

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.

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


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

Create the signature
> pastel-cli signmessage "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" "my message"

Verify the signature
> pastel-cli verifymessage "PtczsZ91Bt3oDPDQotzUsrx1wjmsFVgf28n" "signature" "my message"

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

Maintained by Pastel Network; license of the docs is MIT (see pastel repo)

Generated from a mainnet node