Skip to content

export private key error #2261

@mars-peng-lb

Description

@mars-peng-lb

I’m using @web3auth/modal/react, and the project has already enabled "Enable Key Export", but when calling const privateKey = await provider?.request({ method: "eth_private_key", });, I get an error The method eth_private_key does not exist/is not available.
I want users to be able to export their own private keys. Is there anything else I need to do?
I just ran the official example, added the export function and changed the clientId.

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