bitcoind.app
CommandsGuidesContact ↗
Home/Util/signmessagewithprivkey
Util

signmessagewithprivkey

Sign a message with the private key of an address.

Parameters

privkeystringREQUIRED
The private key to sign the message with
messagestringREQUIRED
The message to create a signature of

Returns

stringBase 64 encoded signature

Code Examples

curl --user myuser --data-binary '{"jsonrpc":"1.0","id":"1","method":"signmessagewithprivkey","params":["privkey","my message"]}' -H 'content-type:text/plain;' http://127.0.0.1:8332/

Example Response

"H3/9bEPGhd0THi...base64_signature..."
← Previous
getindexinfo
Next →
validateaddress

More Util Commands

createmultisigderiveaddressesestimatesmartfeegetdescriptorinfogetindexinfovalidateaddress

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗