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.
<!--- Remove text and sections that do not apply -->
11
+
The issue tracker is only for reporting bugs or submitting feature requests.
12
+
If you need technical assistance for running a node please consult the #fullnode channel on Discord (https://discord.iota.org) or https://forum.helloiota.com/Technology/Help.
13
+
If you have general questions on IOTA you can go to https://iota.stackexchange.com/, https://helloiota.com/, or browse Discord channels (https://discord.iota.org).
@@ -96,7 +96,7 @@ To download the IOTA Java client library and its dependencies, you can use one o
96
96
```
97
97
98
98
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-beta6</version>`
99
+
`<version>efdc784d8a9ef</version>` or `<version>1.0.0-beta7</version>`
100
100
101
101
**Note:** Find the latest version on the [Jitpack](https://jitpack.io/#iotaledger/iota-java) page.
102
102
@@ -182,6 +182,7 @@ We have a list of test cases on the [`src/test/java` directory][tests] that you
182
182
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
183
184
184
## Change logs:
185
+
- Changes in [**1.0.0-beta7**](https://github.com/iotaledger/iota-java/compare/1.0.0-beta6...1.0.0-beta7)
185
186
- Changes in [**1.0.0-beta6**](https://github.com/iotaledger/iota-java/compare/1.0.0-beta5...1.0.0-beta6)
186
187
- Changes in [**1.0.0-beta5**](https://github.com/iotaledger/iota-java/compare/1.0.0-beta4...1.0.0-beta5)
187
188
- Changes in [**1.0.0-beta4**](https://github.com/iotaledger/iota-java/compare/1.0.0-beta3...1.0.0-beta4)
@@ -203,7 +204,7 @@ We have some [basic contribution guidelines](CONTRIBUTING.md) to keep our code b
203
204
204
205
## Joining the Discussion
205
206
206
-
If you want to get involved in the community, need help with getting setup, have any issues related with the library or just want to discuss blockchain, distributed ledgers, and IoT with other people, feel free to join our [Discord](https://discordapp.com/invite/fNGZXvh).
207
+
If you want to get involved in the community, need help with getting setup, have any issues related with the library or just want to discuss blockchain, distributed ledgers, and IoT with other people, feel free to join our [Discord](https://discord.iota.org/).
207
208
208
209
## License
209
210
@@ -229,5 +230,5 @@ The Apache 2.0 license can be found [here](LICENSE).
List<String> addRemainder(String seed , int security , List<[Input](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Input.java)> inputs , [Bundle](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Bundle.java) bundle , String tag , long totalValue , String remainderAddress , List<String> signatureFragments)
4
4
5
5
Uses input, and adds to the bundle, untill `totalValue` is reached. If there is a remainder left on the last input, a remainder transfer is added.
@@ -14,7 +14,7 @@ Uses input, and adds to the bundle, untill `totalValue` is reached. If there is
14
14
| bundle |[Bundle](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Bundle.java)| Required | The [Bundle](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/model/Bundle.java) to be populated. |
15
15
| tag | String | Required | The tag to add to each bundle entry (input and remainder) |
16
16
| totalValue | long | Required | The total value of the desired transaction |
17
-
| remainderAddress | String | Required | The address used for sending the remainder value (of the last input). If this is `null`, [getNextAvailableAddress(String, int, boolean)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L115) is used. |
17
+
| remainderAddress | String | Required | The address used for sending the remainder value (of the last input). If this is `null`, [generateNewAddresses(AddressRequest)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L86) is used. |
18
18
| signatureFragments | List<String> | Required | The signature fragments (message), used for signing.Should be 2187 characters long, can be padded with 9s. |
19
19
20
20
## Output
@@ -27,21 +27,21 @@ Uses input, and adds to the bundle, untill `totalValue` is reached. If there is
27
27
|:---------------|:--------|
28
28
|[ArgumentException](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/error/ArgumentException.java)| When the seed is invalid |
29
29
|[ArgumentException](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/error/ArgumentException.java)| When the security level is wrong. |
30
-
| IllegalStateException | When the inputs do not contain enough balance to reach <tt>totalValue</tt>. |
30
+
| IllegalStateException | When the inputs do not contain enough balance to reach `totalValue`. |
31
31
32
32
## Related APIs (link to other product documentation)
33
33
| API | Description |
34
34
|:---------------|:--------|
35
-
|[signInputsAndReturn(String, List, Bundle, List, org.iota.jota.pow.ICurl)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/utils/IotaAPIUtils.java#L64)| Finalizes and signs the bundle transactions. Bundle and inputs are assumed correct. |
36
-
|[getNextAvailableAddress(String, int, boolean)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L115)| Checks all addresses until the first unspent address is found. Starts at index 0. |
35
+
|[signInputsAndReturn(String, List, Bundle, List, org.iota.jota.pow.ICurl)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/utils/IotaAPIUtils.java#L79)| Finalizes and signs the bundle transactions. Bundle and inputs are assumed correct. |
36
+
|[generateNewAddresses(AddressRequest)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPI.java#L86)| Generates new addresses, meaning addresses which were not spend from, according to the connected node. Stops when [getAmount()](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/builder/AddressRequest.java#L104) of unspent addresses are found, starting from [getIndex()](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/builder/AddressRequest.java#L96) If [getAmount()](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/builder/AddressRequest.java#L104) is set to 0, we will generate until the first unspent address is found, and stop. |
Internal function to get the formatted bundles of a list of addresses.
@@ -8,8 +8,8 @@ Internal function to get the formatted bundles of a list of addresses.
8
8
## Input
9
9
| Parameter | Type | Required or Optional | Description |
10
10
|:---------------|:--------|:--------| :--------|
11
-
| inclusionStates | Boolean | Required |Array of addresses. |
12
-
| addresses | String[]| Required |If `true`, it also gets the inclusion state of each bundle. |
11
+
| inclusionStates | Boolean | Required |If `true`, it also gets the inclusion state of each bundle. |
12
+
| addresses | String[]| Required |Array of addresses. |
13
13
14
14
## Output
15
15
| Return type | Description |
@@ -20,7 +20,7 @@ Internal function to get the formatted bundles of a list of addresses.
20
20
| Exceptions | Description |
21
21
|:---------------|:--------|
22
22
|[ArgumentException](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/error/ArgumentException.java)| When the addresses are invalid |
23
-
| IllegalStateException | When inclusion state/confirmed could not be determined (<tt>null</tt> returned) |
23
+
| IllegalStateException | When inclusion state/confirmed could not be determined (`null` returned) |
24
24
25
25
26
26
## Example
@@ -29,7 +29,7 @@ Internal function to get the formatted bundles of a list of addresses.
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,6 +12,7 @@ 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)
42
43
| API | Description |
43
44
|:---------------|:--------|
44
-
|[findTransactionsByAddresses(String...)](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L273)| 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#L454)| 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. |
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. |
0 commit comments