Last updated 23 days ago
DATA - hex string
DATA
20 Bytes - address
N Bytes - message to sign
curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' --header 'Content-Type: application/json' --data-raw '{"jsonrpc": "2.0", "method": "eth_sign", "params": ["0xcee8ae756461e2653b88aefdbd70c1144de52b23", "0xbcda"], "id": "getblock.io"}'
{ "error": { "code": -32000, "message": "unknown account" }, "id": "getblock.io", "jsonrpc": "2.0" }
Example code for the eth_sign json-rpc method. Сomplete guide on how to use eth_sign json-rpc in GetBlock.io Web3 documentation.