⚡ Test Our Private Nodes of 40+ Blockchains just for $50!

coins coins coins coins

Method: POST personal_ecRecover

dropdown

# personal_ecRecover example for Ethereum (ETH)

POST personal_ecRecover

Method not allowed

ecRecover returns the address associated with the private key that was used to calculate the signature in personal_sign.

Parameters

message - string

None

signature - string

None

Request

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


Response

{
    "result": "null",
    "id": "getblock.io",
    "status_code": 405,
    "message": "Method not allowed"
}