Pre-alphaWork in progress
Skip to content

personal_ecRecover ​

Returns the address that produced a signature over a message signed with personal_sign or eth_sign.

Geth reference · All supported methods

Parameters ​

Parameters are positional, in the order below.

ParameterTypeRequiredDescription
MessageHexadecimal bytesYesThe message that was signed.
SignatureHexadecimal bytesYesThe signature.

Return value ​

The signing account’s 20-byte address.

Example ​

Replace <gateway-url> with your gateway base URL and <service-url> with the chain’s service path, such as service/ethereum.

sh
curl -X POST "<gateway-url>/<service-url>" \
  -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"personal_ecRecover","params":["0xdeadbeaf","0xa3f20717a250c2b0b729b7e5becbff67fdaef7e0699da4de7ca5895b02a170a12d887fd3b17bfdce3481f10bea41f45ba9f709d39ce8325427b57afcfc994cee1b"]}'

Illustrative response; values depend on the selected network and request:

json
{
  "jsonrpc": "2.0",
  "id": 1,
  "result": "0xc94770007dda54cf92009bff0de90c06f603a09f"
}

Unstoppable Infrastructure.