> ## Documentation Index
> Fetch the complete documentation index at: https://docs.uniblock.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# eth_sign

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

### Parameters

<ParamField query="chainId" type="string" default="100" required>
  Unique identifier for a blockchain network.
</ParamField>

<ParamField body="id" type="number" default={1} required>
  Request identifier used to match responses.
</ParamField>

<ParamField body="jsonrpc" type="string" default="2.0" required>
  JSON-RPC version.
</ParamField>

<ParamField body="method" type="string" default="eth_sign" required>
  JSON-RPC method name.
</ParamField>

<ParamField body="params" type="object" default={["0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826","0x5363686f6f6c627573"]} placeholder="[&#x22;0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826&#x22;,&#x22;0x5363686f6f6c627573&#x22;]" required>
  Parameters for eth\_sign: \[address, data].

  Positional parameters for <code>eth\_sign</code>:

  <ul>
    <li><code>params\[0]</code>: The address.</li>
    <li><code>params\[1]</code>: Data which hash to sign.</li>
  </ul>
</ParamField>

### Returns

<ResponseField name="result" type="string">
  Data - Signed data. Example: <code>"0xb1092cb5b23c2aa55e5b5787729c6be812509376de99a52bea2b41e5a5f8601c5641e74d01e4493c17bf1ef8b179c49362b2c721222128d58422a539310c6ecd1b"</code>.
</ResponseField>

<RequestExample>
  ```bash Curl theme={null}
  curl --request POST \
    --url https://api.uniblock.dev/uni/v1/json-rpc?chainId=100 \
    --header 'content-type: application/json' \
    --data '{
      "id": 1,
      "jsonrpc": "2.0",
      "method": "eth_sign",
      "params": [
        "0xcd2a3d9f938e13cd947ec05abc7fe734df8dd826",
        "0x5363686f6f6c627573"
      ]
    }'
  ```
</RequestExample>

<ResponseExample>
  ```json Success theme={null}
  {
    "jsonrpc": "2.0",
    "id": 1,
    "result": "0xb1092cb5b23c2aa55e5b5787729c6be812509376de99a52bea2b41e5a5f8601c5641e74d01e4493c17bf1ef8b179c49362b2c721222128d58422a5..."
  }
  ```
</ResponseExample>
