0

当我在文本区域输入我的私钥时,帮助我解决以太坊智能合约获取我的钱包的问题

Use WalletUtils functionality
The WalletUtils class can be used to load your credentials from various 
formats:

WalletUtils.loadCredentials(String password,String source)
WalletUtils.loadBip39Credentials(String password,String mnemonic)
WalletUtils.loadBip39Credentials(String password,String mnemonic)
WalletUtils.loadJsonCredentials(String password,String content)

http://docs.web3j.io/latest/transactions/credentials/#use-walletutils-functionality

These are the methods provided by the web3j library can anyone help me out to import my wallet from 
ethereum using private key??
4

1 回答 1

0

在智能合约中输入您的私钥不是一个好主意。保存在区块链上的所有东西都是公开的。因此,如果您在智能合约中输入您的私钥,任何人都可以看到它。最好从你的钱包向合约发送以太币,而不是让智能合约按照你的规则管理它们。

于 2021-03-23T14:22:39.967 回答