How do I run the Web3J Smart Contract example?

451 Views Asked by At

I'm trying to run the Web3j example available at https://github.com/web3j/sample-project-gradle

Unfortunately, there is hardly any information available on how to build and run the example, and newbies have to contend with learning Gradle in addition to the Web3j-Java interface.

I'm able to build the example (after creating a Wallet account with a JSON file, loading it with Rinkleby Ether and inserting my Infura API key into the Application file) as follows:

$ gradle build

which succeeds without errors. However, I am clueless on how to run the project...thanks in advance for any help.

s1b

1

There are 1 best solutions below

2
On

Everything seems ok with the your project. Have you tried "Run as a Java application" option from the Eclipse IDE? I am running my Java smart contract functions in this way.