exportWallet
The exportWallet
method is used to export the user's private key or seed phrase.
If the user is authenticated with an Email, this will return a seed phrase If the user is authenticated with a Passkey, this will return a private key
Usage
example.ts
import { signer } from "./signer";
await signer.exportWallet({
iframeContainerId: "my-export-wallet-container",
});
Returns
Promise<boolean>
-- returns a boolean indicating the success of the export
Parameters
params: ExportWalletParams
iframeContainerId: string
-- the id of the container to render the export wallet iframe iniframeElementId?: string
-- the id given to the iframe element that will be injected into the DOM