bitcoind.app
CommandsGuidesContact ↗
Home/Wallet/signmessage
Wallet

signmessage

Sign a message with the private key of an address. The address must be a P2PKH address.

Parameters

addressstringREQUIRED
The bitcoin address to sign with
messagestringREQUIRED
The message to sign

Returns

stringThe signature in base 64

Code Examples

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

Example Response

"H3/9bEPGhd0THi...base64_signature..."
← Previous
setwalletflag
Next →
signrawtransactionwithwallet

More Wallet Commands

abandontransactioncreatewalletdumpprivkeygetbalancegetnewaddressgettransaction

bitcoind.app — Bitcoin Core RPC Reference

GuidesContact ↗