You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 7, 2023. It is now read-only.
1. Add the following repository to your root `pom.xml` file:
79
+
```xml
80
+
<dependency>
81
+
<groupId>org.iota</groupId>
82
+
<artifactId>jota</artifactId>
83
+
<classifier>jar-with-dependencies</classifier>
84
+
<version>1.0.0-beta8</version>
85
+
</dependency>
86
+
```
77
87
88
+
#### Through Jitpack
78
89
1. Add the following repository to your root `pom.xml` file:
79
90
```xml
80
91
<repositories>
@@ -96,7 +107,7 @@ To download the IOTA Java client library and its dependencies, you can use one o
96
107
```
97
108
98
109
3. Change the value of the `<version>` tag to either a release number or the first 10 characters of a Git commit hash:
99
-
`<version>efdc784d8a9ef</version>` or `<version>1.0.0-beta7</version>`
110
+
`<version>efdc784d8a9ef</version>` or `<version>1.0.0-beta8</version>`
100
111
101
112
**Note:** Find the latest version on the [Jitpack](https://jitpack.io/#iotaledger/iota-java) page.
102
113
@@ -108,7 +119,8 @@ To download the IOTA Java client library and its dependencies, you can use one o
108
119
* jota
109
120
* jota-parent
110
121
111
-
2. Reference the jota directory in your project
122
+
2. Import and reference the jota directory in your project
123
+
For example in Eclipse: `right mouse on your project -> Properties -> Java Build Path -> Projects -> Add 'jota'`
112
124
113
125
3. In the jota directory, run the following command:
114
126
@@ -181,7 +193,60 @@ Here are some of the most commonly used API functions:
181
193
We have a list of test cases on the [`src/test/java` directory][tests] that you can use as a reference when developing apps with IOTA.
182
194
A good starter is the [`IotaAPITest` case](https://github.com/iotaledger/iota-java/blob/master/jota/src/test/java/org/iota/jota/IotaAPITest.java).
183
195
196
+
### Creating and broadcasting transactions
197
+
This example shows you how to create and send a transaction to an IRI node by calling the `prepareTransfers()` method and piping the prepared bundle to the `sendTrytes()` method.
Wrapper function: Finds transactions, gets trytes and turns it into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects.
@@ -12,7 +12,6 @@ Wrapper function: Finds transactions, gets trytes and turns it into [Transaction
12
12
13
13
## Output
14
14
List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java)>, which contains the following fields:
## Related APIs (link to other product documentation)
43
42
| API | Description |
44
43
|:---------------|:--------|
45
-
|[findTransactionsByAddresses(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L308)| Find the transactions by addresses with checksum |
46
-
|[findTransactionsObjectsByHashes](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L370)| Wrapper function: get trytes and turns into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects. Gets the trytes and transaction object from a list of transaction hashes. |
44
+
|[findTransactionsByAddresses(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L319)| Find the transactions by addresses with checksum |
45
+
|[findTransactionsObjectsByHashes](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L372)| Wrapper function: get trytes and turns into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects. Gets the trytes and transaction object from a list of transaction hashes. |
Wrapper function: Finds transactions, gets trytes and turns it into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects.
@@ -12,7 +12,6 @@ Wrapper function: Finds transactions, gets trytes and turns it into [Transaction
12
12
13
13
## Output
14
14
List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java)>, which contains the following fields:
## Related APIs (link to other product documentation)
43
42
| API | Description |
44
43
|:---------------|:--------|
45
-
|[findTransactionsByApprovees](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L334)| Find the transactions by approvees |
44
+
|[findTransactionsByApprovees](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L345)| Find the transactions by approvees |
Wrapper function: Finds transactions, gets trytes and turns it into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects.
@@ -12,7 +12,6 @@ Wrapper function: Finds transactions, gets trytes and turns it into [Transaction
12
12
13
13
## Output
14
14
List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java)>, which contains the following fields:
## Related APIs (link to other product documentation)
43
42
| API | Description |
44
43
|:---------------|:--------|
45
-
|[findTransactionsByTags(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L361)| Find the transactions by tags |
46
-
|[findTransactionsObjectsByHashes](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L370)| Wrapper function: get trytes and turns into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects. Gets the trytes and transaction object from a list of transaction hashes. |
44
+
|[findTransactionsByTags(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L372)| Find the transactions by tags |
45
+
|[findTransactionsObjectsByHashes](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L372)| Wrapper function: get trytes and turns into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects. Gets the trytes and transaction object from a list of transaction hashes. |
Wrapper function: get trytes and turns into [Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java) objects. Gets the trytes and transaction object from a list of transaction hashes.
@@ -12,7 +12,6 @@ Wrapper function: get trytes and turns into [Transaction](https://github.com/iot
12
12
13
13
## Output
14
14
List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java)>, which contains the following fields:
## Related APIs (link to other product documentation)
43
42
| API | Description |
44
43
|:---------------|:--------|
45
-
|[getTrytes(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L408)| Returns the raw transaction data (trytes) of a specific transaction. These trytes can then be easily converted into the actual transaction object. You can use [Transaction(String)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java#L145) for conversion to an object. |
44
+
|[getTrytes(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L419)| Returns the raw transaction data (trytes) of a specific transaction. These trytes can then be easily converted into the actual transaction object. You can use [Transaction(String)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Transaction.java#L145) for conversion to an object. |
Copy file name to clipboardExpand all lines: docs/iota-java/generateNewAddresses.md
-1
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,6 @@ Generates new addresses, meaning addresses which were not spend from, according
12
12
13
13
## Output
14
14
[GetNewAddressResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetNewAddressResponse.java), which contains the following fields:
0 commit comments