Eth sign

The sign method calculates an Ethereum specific signature with: sign(keccak256("\x19Ethereum Signed Message:\n" + len(message) + message))).

Request body sample: {"jsonrpc":"2.0","method":"eth_sign","params":["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83", "0xdeadbeaf"],"id":1}

POSTeth_sign
Body
idinteger
jsonrpcstring
methodstring
paramsnullable array of any
Response

OK

Body
idinteger
jsonrpcstring
resultstring
Request
const response = await fetch('eth_sign', {
    method: 'POST',
    headers: {
      "Content-Type": "application/json"
    },
    body: JSON.stringify({}),
});
const data = await response.json();
Response
{
  "id": 0,
  "jsonrpc": "text",
  "result": "text"
}