exportWallet
Used to export the wallet for a given user 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
Import
import { BaseAlchemySigner } from "@account-kit/signer";
Usage
import { AlchemyWebSigner } from "@account-kit/signer";
const signer = new AlchemyWebSigner({
client: {
connection: {
rpcUrl: "/api/rpc",
},
iframeConfig: {
iframeContainerId: "alchemy-signer-iframe-container",
},
},
});
// the params passed to this are different based on the specific signer
const result = signer.exportWallet();
Parameters
params
unknown
export wallet parameters
Returns
boolean
true if the wallet was exported successfully