Java developers develop Ethernet based blockchain best practices

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

java developers develop ethernet based

Develop design tools






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 :

4. hold 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