cast-wallet-sign - Sign a message.
cast wallet sign
[options] message
Sign a message suitable for eth_sign
. Note that signing prefixes the message with the Ethereum Signed Message header in accordance with EIP-191 unless --no-hash
is provided.
{{#include ../common/wallet-options-raw.md}}
{{#include ../common/wallet-options-keystore.md}}
{{#include ../common/wallet-options-hardware.md}}
{{#include common-options.md}}
-
Sign a message using a keystore:
cast wallet sign --keystore keystore.json --interactive "hello"
-
Sign a message using a raw private key:
cast wallet sign --private-key $PRIV_KEY "hello"