CrowdFunding
CrowdFunding copied to clipboard
基于区块链(以太坊)技术的安全众筹系统
以太坊众筹系统
:smile: 更新版本,支持插件。
Hello World
学前班:https://github.com/littleredhat1997/Ethereum
如果不想本地搭建,可以使用公开测试网络:
- https://ropsten.infura.io/
- https://rinkeby.infura.io
- https://kovan.infura.io
运行插件
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/
注意:记得挖矿,等待确认!