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.
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. |
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
-
|[findTransactionsByApprovees](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/IotaAPICore.java#L304)| Find the transactions by approvees |
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 |
0 commit comments