Share your feedback on Twitter and claim 5M Free GetBlock Requests

banner image

Last updated on January 1, 1970

1 min read

Method eth_sign Fuse.io (FUSE)
connect with JSON-RPC protocol

eth_sign

info-circle-fill

The sign method calculates an Ethereum specific signature withsign(keccak256(\x19Ethereum Signed Message\n + len(message) +message))).By adding a prefix to the message makes the calculated signaturerecognisable as an Ethereum specific signature. This prevents misusewhere a malicious DApp can sign arbitrary data (e.g. transaction) anduse the signature to impersonate the victim.Note the address to sign with must be unlocked.

Parameters

DATA - string

address.

DATA - string

message to sign.

Request

curl --location --request POST 'https://fuse.getblock.io/mainnet/' 
--header 'x-api-key: YOUR-API-KEY' 
--header 'Content-Type: application/json' 
--data-raw '{"jsonrpc": "2.0",
"method": "eth_sign",
"params": ["0x9b956e3d318625be2686ae7268d81777c462d41f", "0xdeadbeaf"],
"id": "getblock.io"}'

Response

{
    "error": {
        "code": -32041,
        "message": "Request has been rejected because of queue limit."
    },
    "id": "getblock.io",
    "jsonrpc": "2.0"
}
banner icon

Start Building with GetBlock RPCs for Free