小编MrK*_*750的帖子

在web3j中使用ganache帐户

当尝试使用https://github.com/web3j/sample-project-gradle时遇到此代码:

    // We then need to load our Ethereum wallet file
    // FIXME: Generate a new wallet file using the web3j command line tools https://docs.web3j.io/command_line.html
    Credentials credentials =
            WalletUtils.loadCredentials(
                    "<password>",
                    "/path/to/<walletfile>");
    log.info("Credentials loaded");
Run Code Online (Sandbox Code Playgroud)

我想使用ganache-cli创建的网络.我成功连接到网络但我找不到钱包文件.有没有办法在这里使用ganache-cli生成的帐户?

blockchain ethereum truffle web3-java

3
推荐指数
1
解决办法
1451
查看次数

标签 统计

blockchain ×1

ethereum ×1

truffle ×1

web3-java ×1