Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

The method personal_ecRecover does not exist/is not available #3911

@leon-do

Description

@leon-do

Expected behavior

web3.eth.personal.ecRecover("Hello world", "0x30755ed65396facf86c53e6217c52b4daebe72aa4941d89635409de4c9c7f9466d4e9aaec7977f05e923889b33c0d0dd27d7226b6e6f56ce737465c5cfd04be400").then(console.log);
prints address of owner

Actual behavior

The method personal_ecRecover does not exist/is not available

Steps to reproduce the behavior

  1. https://web3js.readthedocs.io/en/v1.3.1/web3-eth-personal.html#ecrecover
  2. web3.eth.personal.ecRecover("Hello world", "0x30755ed65396facf86c53e6217c52b4daebe72aa4941d89635409de4c9c7f9466d4e9aaec7977f05e923889b33c0d0dd27d7226b6e6f56ce737465c5cfd04be400").then(console.log);
  3. The method personal_ecRecover does not exist/is not available

Solution

Move docs from web3.eth.personal to web3.eth.accounts

working method:

web3.eth.accounts.recover(rawTx, signedTx);

I think there's a few more to move. Will verify.

Environment

node: v14.15.4
"web3": "^1.3.4"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions