{"jsonrpc":"2.0","method":"eth_sign","params":["**", "0xdeadbeaf"],"id":1}

Here is an example

Ignoring the first parameter, what format is the second parameter?

{"jsonrpc":"2.0","method":"eth_sign","params":["**", "hello"],"id":1}

Should I convert "hello" to hex and concatenate 0x?

{"jsonrpc":"2.0","method":"eth_sign","params":["**", "0x68656c6c6f"],"id":1}

1 Answer 1


According to the ethereum wiki, the second parameter is a keccak256 hash of the message, with the following format:

keccak256("\x19Ethereum Signed Message:\n" + len(message) + message)

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.