Azxa
← zkSync Era overview

zkSync Era · eth

eth_sign

Returns an EIP-191 signature over the provided data.

Parameters

  • Address required
    Schema
    {
      "type": "string",
      "title": "hex encoded address",
      "pattern": "^0x[0-9a-fA-F]{40}$"
    }
  • Message required
    Schema
    {
      "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-zksync-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-zksync-node.azxa.io \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"eth_sign","params":["0x9b2055d370f73ec7d8a03e965129118dc8f5bf83","0xdeadbeaf"]}'
1

Select Chain

2

Desired Period

3

Contact Information

cross

Select Preferred Chain

BNB Smart Chain
Polygon
Tron
Arbitrum
Optimism
IoTeX
Gnosis
Fantom
Moonbeam
Polkadot
Avalanche
Bitcoin
Ethereum
Aptos
Other
cube

Other Chain

Continue
logo
cross
background