eth_sign
Method
- JSON-RPC method name:
eth_sign - JSON-RPC version:
2.0
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
| Address | string | yes | |
| Message | string | yes |
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:
AddressMessage
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.