Java developers develop Ethernet based blockchain best practices

cnstartech 2022-04-03 20:11:43 阅读数:723

java developers develop ethernet based

Develop design tools

  remix 

   solc

web3j

 truffle

  geth(testrpc)


Development steps

        1. Use remix To write Intelligent contract (.sol) , Including debugging

        2. Use solc(solcjs) compile sol File to .bin  .abi

 3. Use web3j combination (.bin and .abi) Generate rpc The client calls java file Such as : TokenContract.java

4. hold TokenContract.java Add to In my own project ( It's best to create a separate project to manage the contract client )

 5. Deploy contract to node ( Get the contract address ) Mining needs to be started

  Method 1 : Use truffle migrate

Method 2 : adopt Java rpc client call deploy(...) Deploy

6. Now you can do test cases


版权声明:本文为[cnstartech]所创,转载请带上原文链接,感谢。 https://netfreeman.com/2022/04/202204030744567571.html