eth_sign - Polygon

Example code for the eth_sign json-rpc method. Сomplete guide on how to use eth_sign json-rpc in GetBlock.io Web3 documentation.

Parameters

DATA - string

address.

DATA - string

message to sign.

Request

curl --location --request POST 'https://go.getblock.io/<ACCESS-TOKEN>/' \
--header 'Content-Type: application/json' \
--data-raw '{"jsonrpc": "2.0",
"method": "eth_sign",
"params": ["0xe7e2cb8c81c10ff191a73fe266788c9ce62ec754", "0xdeadbeaf"],
"id": "getblock.io"}'

Response

{
    "error": {
        "code": -32000,
        "message": "unknown account"
    },
    "id": "getblock.io",
    "jsonrpc": "2.0"
}

Last updated