← Linea overview
Linea · eth
eth_sign
Returns an EIP-191 signature over the provided data.
Parameters
AddressrequiredSchema{ "type": "string", "title": "hex encoded address", "pattern": "^0x[0-9a-fA-F]{40}$" }MessagerequiredSchema{ "type": "string", "title": "hex encoded bytes", "pattern": "^0x[0-9a-f]*$" }
Result
Signature
Schema
{
"type": "string",
"title": "65 hex encoded bytes",
"pattern": "^0x[0-9a-f]{130}$"
}Example request
Endpoint: https://your-linea-node.azxa.io
JSON-RPC
{
"jsonrpc": "2.0",
"id": 1,
"method": "eth_sign",
"params": [
"0x9b2055d370f73ec7d8a03e965129118dc8f5bf83",
"0xdeadbeaf"
]
}Example response
{
"jsonrpc": "2.0",
"id": 1,
"result": "0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfd…5427b57afcfc994cee1b"
}cURL
curl -X POST https://your-linea-node.azxa.io \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"eth_sign","params":["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83","0xdeadbeaf"]}'