SDK Method
This method is currently only available through our web, React Native, and Android SDKs. For all other SDKs, refer to our Reveal Page section below.

user.revealEVMPrivateKey
method to allow your users to view their EVM private keys. Implementing this method will allow your end users to back up their private keys or take them to another wallet. Neither Magic nor the developer can see this key; only the end user can.
Breaking Change: As of SDK version 31.0.0 (JavaScript) and 32.0.0 (React Native),
revealPrivateKey()
has been renamed to revealEVMPrivateKey()
for EVM chains. For non-EVM chains, use the specific extension’s revealPrivateKey()
method instead. The Android SDK continues to use user.revealPrivateKey()
.Usage
Once you have verified the correct setup of the Magic SDK and successfully authenticated the user, the reveal private key modal can then be displayed by calling the appropriate method:Important: Implementing this SDK method will allow your end users to access their private key. Be sure to read through this document carefully before implementing.
EVM Chains (Web & React Native)
JavaScript
Non-EVM Chains (Blockchain Extensions)
For non-EVM chains, use the specific extension’srevealPrivateKey
method:
JavaScript
Android SDK
The Android SDK continues to use the original method:Kotlin
Reveal Page

- Your API key (starts with
pk_live
) - A list of blockchains you are using
- Your app name for the endpoint, such as
https://reveal.magic.link/your-app-name
Please make sure to deactivate any login methods that you are not using. Login methods can be added and removed at any point and changes will be immediately visible on your reveal page.