Skip to content

ETH私钥导入钱包,无法获取助记词 #60

Open
@cw19920617

Description

@cw19920617

使用importWalletFromPrivateKey导入钱包,
Metadata metadata = new Metadata("ETHEREUM", Network.MAINNET, "name", "ETH", "");
metadata.setSource(Metadata.FROM_PRIVATE);
Wallet wallet = WalletManager.importWalletFromPrivateKey(metadata, privateKey, password, true);

成功导入后,导出助记词
MnemonicAndPath mnemonicAndPath = WalletManager.exportMnemonic(walletID, password);
返回对象mnemonicAndPath为空

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions