11# EEA Sample Project
2- This project provides a simple web3j application that demonstrates the EEA features of web3j connecting to Pantheon in the Private Network.
2+ The project provides a simple web3j application that demonstrates the EEA features of web3j connecting to Pantheon in the Private Network.
3+
4+ ## Functionality
5+ This application demonstrates a number of core features of web3j and Ethereum through Pantheon nodes:
36
471 . Connecting to a Pantheon the Ethereum network
582 . Loading an Ethereum wallet file
@@ -66,6 +69,44 @@ Right clique > Mark Directory As > Unmark Generated Sources Root.
6669$ ./gradlew generateContractWrappers
6770```
6871
72+ To execute the application.
73+
74+ !!! important
75+ To execute ` ./gradlew run ` you need to have all the nodes from Pantheon-Quickstart running.
76+
77+ ``` bash
78+ $ ./gradlew run
79+ ```
80+
81+ Example Output
82+ ``` bash
83+ 11:02:37.221 [main] INFO org.web3j.eea.sample.Application - Alice deploying private token for {Alice, Bob}
84+ 11:02:38.961 [main] INFO org.web3j.eea.sample.Application - Token deployed at 0x08ae6fb627eff726705d72e3705746f5353986f2 for {Alice, Bob}
85+ 11:02:38.962 [main] INFO org.web3j.eea.sample.Application - Alice view of tokens:
86+ 11:02:42.115 [main] INFO org.web3j.eea.sample.Application - Alice: 10
87+ 11:02:42.115 [main] INFO org.web3j.eea.sample.Application - Bob: 0
88+ 11:02:42.115 [main] INFO org.web3j.eea.sample.Application - Bob view of tokens:
89+ 11:02:44.443 [main] INFO org.web3j.eea.sample.Application - Alice: 10
90+ 11:02:44.444 [main] INFO org.web3j.eea.sample.Application - Bob: 0
91+ 11:02:44.445 [main] INFO org.web3j.eea.sample.Application - Transferring 10 tokens from Alice to Bob
92+ 11:02:45.545 [main] INFO org.web3j.eea.sample.Application - Alice view of tokens:
93+ 11:02:47.687 [main] INFO org.web3j.eea.sample.Application - Alice: 0
94+ 11:02:47.687 [main] INFO org.web3j.eea.sample.Application - Bob: 10
95+ 11:02:47.687 [main] INFO org.web3j.eea.sample.Application - Bob view of tokens:
96+ 11:02:49.848 [main] INFO org.web3j.eea.sample.Application - Alice: 0
97+ 11:02:49.848 [main] INFO org.web3j.eea.sample.Application - Bob: 10
98+ 11:02:49.849 [main] INFO org.web3j.eea.sample.Application - Transferring 1 token from Bob to Alice
99+ 11:02:50.900 [main] INFO org.web3j.eea.sample.Application - Alice view of tokens:
100+ 11:02:53.003 [main] INFO org.web3j.eea.sample.Application - Alice: 1
101+ 11:02:53.003 [main] INFO org.web3j.eea.sample.Application - Bob: 9
102+ 11:02:53.003 [main] INFO org.web3j.eea.sample.Application - Bob view of tokens:
103+ 11:02:57.098 [main] INFO org.web3j.eea.sample.Application - Alice: 1
104+ 11:02:57.098 [main] INFO org.web3j.eea.sample.Application - Bob: 9
105+
106+ BUILD SUCCESSFUL in 22s
107+ ```
108+
109+ ## Test
69110Execute ` ./gradlew test ` .
70111
71112!!! important
@@ -75,5 +116,3 @@ Execute `./gradlew test`.
75116$ ./gradlew test
76117```
77118
78-
79-
0 commit comments