Import/Recovery
let walletResponse = client.createMnemonicWallet(
name: "KeyGenGroupID123",
numParties: 2,
mnemonicPhrase: "your mnemonic phrase here",
wallets: [
KeyGenWallet(
secret: "derived private key",
walletAddress: "0xYourWalletAddress",
chainId: "ethereum",
ecType: "ecdsa"
)
]
)
for masterWallet in walletResponse.masterWallets {
for wallet in masterWallet {
// Assuming wallet has properties: keyIdentity, ecType, and address
print("keyIdentity: \(wallet.keyIdentity) - ecType: \(wallet.ecType) - address: \(wallet.address)")
}
}Last updated