Export Wallet
After generating the wallet, you can export the wallet configuration to securely save it for later use, to allow the user to create a backup, or for something else.
import { ChainId, KriptonioSdk } from '@kriptonio/sdk';
const sdk = new KriptonioSdk({
accessToken: 'your-access-token',
});
const wallet = await sdk.wallet.generate({
chainId: ChainId.BaseSepolia,
type: 'kernel',
});
const exported = wallet.export();