12 lines
416 B

#!/bin/bash
echo 'Sign a Message with the Private Key of Given Address'
echo 'Parameter1: Address Corresponding to Private key to sign with'
echo 'Parameter2: Message To Sign'
echo 'Return Signature for corresponding Message'
curl --url "http://127.0.0.1:7778" --data "{\"agent\":\"bitcoinrpc\",\"method\":\"signmessage\",\"address\":\"REurKb7jWHJgE2WKMqvqiDdbFf6Tmd2CEX\",\"message\":\"testMessage\"}"
echo ""