Skip to main content

Try It Now Dialog

eth_sign


Method

  • JSON-RPC method name: eth_sign
  • JSON-RPC version: 2.0

Parameters

NameTypeRequiredDescription
Addressstringyes
Messagestringyes

Parameter schema

{
"Address": {
"required": true,
"schema": {
"title": "hex encoded address",
"type": "string",
"pattern": "^0x[0-9a-fA-F]{40}$"
}
},
"Message": {
"required": true,
"schema": {
"title": "hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]*$"
}
}
}

Result

  • Name: Signature
  • Type: string

Result schema

{
"title": "65 hex encoded bytes",
"type": "string",
"pattern": "^0x[0-9a-f]{130}$"
}

Positional parameters

Parameter order:

  1. Address
  2. Message

Errors

This method may return JSON-RPC standard errors (e.g. -32600, -32601, -32602, -32603) as well as application-specific errors.

TODO: Document method-specific error codes and conditions.