Eth

eth_sign

Signs data with a given address.

⚠️ Security Note: This method fails on every C-Chain node. Since AvalancheGo v1.15.0, the node holds no accounts or keystore. Sign the transaction on the client and send it with eth_sendRawTransaction.

POST
/ext/bc/C/rpc#eth_sign

JSON-RPC request

jsonrpcstring
methodstring
params

[address, dataToSign]

Items2 <= items <= 2
idinteger

Response Body

application/json

application/json

curl -X POST "https://api.avax.network/ext/bc/C/rpc#eth_sign" \  -H "Content-Type: application/json" \  -d '{    "jsonrpc": "2.0",    "method": "eth_sign",    "params": [      "0x...",      "0x..."    ],    "id": 1  }'
{
  "jsonrpc": "2.0",
  "result": null,
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}
{
  "jsonrpc": "2.0",
  "error": {
    "code": 0,
    "message": "string",
    "data": null
  },
  "id": 1
}

Is this guide helpful?