Headless
Headless Embedded Wallet Export
Introduction
This functionality is only available on V2.1.0-alpha.11 of the SDK and above.
You can use the SDK to headlessly reveal the private key or recovery phrase of an embedded wallet.
We will use the revealWalletKey
method from the useEmbeddedWallet
hook, which has the following signature:
As you can see, the method takes an object with two properties:
type
: The type of key you want to reveal. It can be eitherrecoveryPhrase
orprivateKey
.htmlContainerId
: The id of the HTML element where the key will be displayed. You must have a div present in your component with this id.
Full code example
Was this page helpful?