Wallets API
Export wallet
Link
Wallets API
- Overview
- Libraries
- Authentication
- Create Wallet
- Send transaction
- Sign message
- Delegate transactions
- Import wallet
- Export wallet
Wallets API
Export wallet
Export wallet’s mnemonic phrase.
Prerequisite: Create Wallet
const exportWalletResp = await wk.wallets.export({
network: Network.Base,
address: "<walelt address>",
userPin: "<user pin>",
});
if (!exportWalletResp.ok) {
// handle error
}
const mnemonicPhrase = exportWalletResp.body.mnemonicPhrase;