Import/Recovery
val walletResponse = client.createMnemonicWallet(
name = "KeyGenGroupID123",
numParties = 2,
mnemonicPhrase = "import your mnemonic phrase ",
wallets = listOf(
KeyGenWallet(
secret = "derived private key",
walletAddress = "0xYourWalletAddress",
chainId = "ethereum",
ecType = "ecdsa"
)
)
)
walletResponse.masterWallets.forEach { masterWallet ->
masterWallet.forEach { wallet
println("keyIdentity: ${wallet.keyIdentity} - ecType: ${wallet.ecType} - address: ${wallet.address}")
}
}
Last updated