Skip to content

Latest commit

 

History

History
39 lines (28 loc) · 906 Bytes

README.md

File metadata and controls

39 lines (28 loc) · 906 Bytes

以太坊众筹系统

😄 更新版本,支持插件。

alt text

alt text

alt text

alt text

Hello World

学前班:https://github.com/littleredhat1997/Ethereum

如果不想本地搭建,可以使用公开测试网络:

运行插件

Plugins->web3j:generate-sources

resources/CrowdFunding.sol ----> org.web3j.model.CrowdFunding

部署合约

test/java/com/example/demo/ContractDeploy.java

CrowdFunding contract = CrowdFunding.deploy(web3j, credentials, new DefaultGasProvider()).send();
System.out.println(contract.getContractAddress());
// rewrite: contractAddress ----> application.properties

启动项目

main/java/com/example/demo/Application.java

http://localhost:8080/

注意:记得挖矿,等待确认!