This is a boilerplate project setup for Java smart contracts. It brings the minimum amount of code to compile and test a "Hello World" smart contract for Neo N3.
Java 8 (or higher) is required.
Docker is required for running smart contract
tests.
git clone https://github.com/neow3j/neow3j-boilerplate-contracts.git
cd neow3j-boilerplate-contracts
./gradlew neow3jCompile
$ ls -la build/neow3j
total 24
drwxr-xr-x 5 user wheel 160 23 Feb 17:40 .
drwxr-xr-x 7 user wheel 224 23 Feb 17:40 ..
-rw-r--r-- 1 user wheel 425 23 Feb 17:40 HelloWorldSmartContract.manifest.json
-rw-r--r-- 1 user wheel 94 23 Feb 17:40 HelloWorldSmartContract.nef
-rw-r--r-- 1 user wheel 430 23 Feb 17:40 HelloWorldSmartContract.nefdbgnfo
./gradlew test
- Run a local Neo Express instance. The project includes a Neo Express configuration file.
- Fund Alice's account:
neoxp transfer 100 GAS genesis alice
- Go to the
com.axlabs.boilerplate.Deployment
class and run it.
Neow3j is a Java SDK and smart contract devpack that provides easy and reliable tools to build Neo dApps and Smart Contracts using the Java platform (Java, Kotlin, Android).
Check out neow3j.io for more information on neow3j and the technical documentation.
Neow3j is an open-source project developed by the community and maintained by AxLabs.