Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit cef1128

Browse files
author
Brord van Wierst
committed
Added line break after output header for proper table display
1 parent 10aec4d commit cef1128

35 files changed

+53
-45
lines changed

docs/iota-java/addRemainder.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Uses input, and adds to the bundle, untill `totalValue` is reached. If there is
4141
IotaAPI iotaAPI = new IotaAPI.Builder().build();
4242

4343
try {
44-
List<String> response = iotaAPI.addRemainder("YOUR9SECRET9SEED9999999...", 3, new List<Input>(new Input[]{inputs, inputs}), bundle, "TAG9EVSFKPCCAZOIJCKI9AEGDMZ", 115, "NAUGMCFRLKESDQJPABDF9ZPBCXQWYRMQZCDJEROLOD9DE9JGRWVUYYVRRJHVSVYVLHBXWVJS9HIWOBAPF", new List<String>(new String[]{"XUYCXJBOKBEWGAARZJKXNHMTI ... AOIQWVEROWDIPO9T9GQZOWBYG", "LGNGZAZKFZCTUVAUGTBQKDPLU ... KLUPDHIEPPWVBOIBQU9VAPSFI"}));
44+
List<String> response = iotaAPI.addRemainder("YOUR9SECRET9SEED9999999...", 3, new List<Input>(new Input[]{inputs, inputs}), bundle, "TAG9TIGHDELJXFHN9KLKZHVGBST", 284, "LTWUDWCICFHSWYOXMBWXEYQGBJNAKHCXIQGSTOQOTJR9DBOOVYGZ9NLHAK9FGCSXWKTBPBBMOVZMJBHKJ", new List<String>(new String[]{"PSDFHESDBFMKIEGSKIYHTIQEC ... BDVYKAQWWAGBZBPSFVKWBY9YB", "PSXXTETHXPZPIUQNMCORDIOOG ... QCFIIPMYGROYCQAMKSNIUDJPG"}));
4545
} catch (ArgumentException e) {
4646
// Handle error
4747
e.printStackTrace();

docs/iota-java/availableBalance.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Runs the input selection with the CDAs in order to determine the usable balance
2121

2222
```Java
2323
IotaAPI iotaAPI = new IotaAPI.Builder().build();
24-
IotaAccount account = new IotaAccount.Builder("MY9SEED9..")
25-
.api(iotaAPI) .build()
24+
IotaAccount account = new IotaAccount.Builder("MY9SEED9..").api(iotaAPI).build()
2625
try {
2726
long response = account.availableBalance();
2827
} catch (AccountError e) {

docs/iota-java/bundlesFromAddresses.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Internal function to get the formatted bundles of a list of addresses.
2929
IotaAPI iotaAPI = new IotaAPI.Builder().build();
3030

3131
try {
32-
Bundle[] response = iotaAPI.bundlesFromAddresses(true, new String[]{"VMZTMTBUHJJP9MSZMSDRXNSZYQDSSBSTHUUJEKTBLGGJEEL9JTLQNMVPKDZY9JUHFOKCBR9RUSBNGGGAN", "NLJYZHNRWFMGPGBZXUFR9ZQSYNDNBZZRBJVPOHLDKCQYQENZGOJHASLB9TRDFLEDQQRZBJMHCSWMKWXWY"});
32+
Bundle[] response = iotaAPI.bundlesFromAddresses(false, new String[]{"UTSPUMBBRHRCVMPKAWDRXIFUYHOYLJGTZ9DTRIQJFD9UFDYCNLFQBV9LTOMGASNPWVFMCAMKVKOCVNZKG", "WAZEFGAKXRACVFNEP9JXYPASTZVBYXF9UNHKUHRUDWDBETAJYD9OFWBOJON9FDQRRBTVXZMCMMTLZLRWH"});
3333
} catch (ArgumentException e) {
3434
// Handle error
3535
e.printStackTrace();

docs/iota-java/checkWereAddressSpentFrom.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Check if a list of addresses was ever spent from, in the current epoch, or in pr
2727
IotaAPI iotaAPI = new IotaAPI.Builder().build();
2828

2929
try {
30-
boolean[] response = iotaAPI.checkWereAddressSpentFrom(new String[]{"9KISOKFUUNAIEENBGWBUYDAAZKFVPSMQNSOOEYTKBOJRR9LRXCHGBPCIZJUPWYUYNFGUEZRGLPX9MMQGY", "S9MYALBTYKR9MVUURUXUFEYNIBWERZVPF9A9GNFVQBYCTNXMLHAELTMEUUGRTPOCXTBQKMR9ETNHWXNSC"});
30+
boolean[] response = iotaAPI.checkWereAddressSpentFrom(new String[]{"LFR9BZETOYCK99HAUF9QCKHNFKWRSGMUSWCBES99LBQNLA9FPZHZWOXALDUYBUUYSSCVECENJXIKVKFOT", "RUIZBLTGKNUQN9K9MFTODKMM9VXLKWAHVYATRFIC9COFBMXO9POVTRVBSZAEICJSFFAHWZLPMU9AEWKIE"});
3131
} catch (ArgumentException e) {
3232
// Handle error
3333
e.printStackTrace();

docs/iota-java/findTransactionObjectsByAddresses.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Wrapper function: Finds transactions, gets trytes and turns it into [Transaction
1212

1313
## Output
1414
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:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| long attachmentTimestampLowerBound | |
@@ -50,7 +51,7 @@ List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/
5051
IotaAPI iotaAPI = new IotaAPI.Builder().build();
5152

5253
try {
53-
List<Transaction> response = iotaAPI.findTransactionObjectsByAddresses(new String[]{"BT9M9WIWRNWMSZKGFCNMDJQNBFAVQYSPQM9IHBSY9QKFLFICECXGWAUIVYD9LRTGVHJBQTNUTWNHOYCDK", "UVNZEDRMZINCHZHGLRHIYMTLTJAEBJVGRST9MCBZHNGOYICBWDCIRZYAG9LBYW9DJKAJXCXWKNMZBEYWJ"});
54+
List<Transaction> response = iotaAPI.findTransactionObjectsByAddresses(new String[]{"GHIALCNSUKFIOHCNZOWRAVNRJTMEHWTRBNMMCLCZAXPDWXTUXPWCUOIRKWKX9YXYNS9JGPNCIURDYBNDY", "BYANZHOP9YKVFFWJZGBDTGFBNRTUQGEFXWMJNTOACZ9IRETPQX9EKMFNTVJFYRCKWCKFQAQXXD9JVSQBX"});
5455
} catch (ArgumentException e) {
5556
// Handle error
5657
e.printStackTrace();

docs/iota-java/findTransactionObjectsByApprovees.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Wrapper function: Finds transactions, gets trytes and turns it into [Transaction
1212

1313
## Output
1414
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:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| long attachmentTimestampLowerBound | |
@@ -49,7 +50,7 @@ List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/
4950
IotaAPI iotaAPI = new IotaAPI.Builder().build();
5051

5152
try {
52-
List<Transaction> response = iotaAPI.findTransactionObjectsByApprovees(new String[]{"PCALTVSYNKITLTJJCFT9UQQLDVTFDPHCUGHML9VIJUJBIWGXTJAWBFST9XOEEQZRVBOZMOSEZRFYWTWUN", "NVUFNKGSJLGS9ONWRUBZIPQ9TYLHUDBUQTCANMQNMWNWMIWXXI9JLFPW9QYOHKHIIBZRCBDJVAIBTKEPP"});
53+
List<Transaction> response = iotaAPI.findTransactionObjectsByApprovees(new String[]{"WSOLQGWRUZEPMZUKRDVDADHVESYRLOWOEHCWONIIT9HSPBZLEGQNYIHVKLMIEZYTPADXJYBOVNNYCPCYJ", "MFZMSUNPKPLDMTWQSPIMULPIZGBENUCSHYORAVNQPTKGKIXLTPUVPJHNJQLRNZHNZXOFGUUMIHDZPWNWP"});
5354
} catch (ArgumentException e) {
5455
// Handle error
5556
e.printStackTrace();

docs/iota-java/findTransactionObjectsByTag.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Wrapper function: Finds transactions, gets trytes and turns it into [Transaction
1212

1313
## Output
1414
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:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| long attachmentTimestampLowerBound | |
@@ -50,7 +51,7 @@ List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/
5051
IotaAPI iotaAPI = new IotaAPI.Builder().build();
5152

5253
try {
53-
List<Transaction> response = iotaAPI.findTransactionObjectsByTag(new String[]{"TAG9XWNFQQXEBVJSGYDGFKBNKCJ", "TAG9ILS9EZJO9SDDCKRSHHWEQVV"});
54+
List<Transaction> response = iotaAPI.findTransactionObjectsByTag(new String[]{"TAG9RODSMKAQRHOSDABVIGIMVYM", "TAG9XVOVWUZPEYGUUJFHEJRTDXL"});
5455
} catch (ArgumentException e) {
5556
// Handle error
5657
e.printStackTrace();

docs/iota-java/findTransactionsObjectsByHashes.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Wrapper function: get trytes and turns into [Transaction](https://github.com/iot
1212

1313
## Output
1414
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:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| long attachmentTimestampLowerBound | |
@@ -49,7 +50,7 @@ List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/
4950
IotaAPI iotaAPI = new IotaAPI.Builder().build();
5051

5152
try {
52-
List<Transaction> response = iotaAPI.findTransactionsObjectsByHashes(new String[]{"AWJBFHNHAIFIURZBAPOLGDGRXNEAHVOEJGJSIBSRPPJABNMTHQCVCYNETHLNVNU9IGULOJZEYRLKPDRLA", "VAFBW9TNXACWOAJNKUIDYNZSRFMABFKSL99PRWWQWYEOUSRTNQFSRGDOSWIBBJYFWZGNWMBUAOPRZMCTY"});
53+
List<Transaction> response = iotaAPI.findTransactionsObjectsByHashes(new String[]{"JQXBUOXGAFOTMXJZXHFYSC9RBYJTWTFDNFTXID9Z9XRJOTHZOFKPZJLCWPBASCCAWGOFNUVKFWLNUPNHZ", "YZVXFBPDEUAUIXEQI99YXWUYCLNEN9ZJZUNVWRKFNRQATZPGTXVISRMOYYTYQLKJYQWKAJHDSDEWIMCWI"});
5354
} catch (ArgumentException e) {
5455
// Handle error
5556
e.printStackTrace();

docs/iota-java/generateNewAddresses.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Generates new addresses, meaning addresses which were not spend from, according
1212

1313
## Output
1414
[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:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| Long duration | Gets the duration. |

docs/iota-java/getAccountData.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ Similar to getTransfers, just that it returns additional account data
2121

2222
## Output
2323
[GetAccountDataResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetAccountDataResponse.java), which contains the following fields:
24+
2425
| Return type | Description |
2526
|--|--|
2627
| Long duration | Gets the duration. |
@@ -46,7 +47,7 @@ Similar to getTransfers, just that it returns additional account data
4647
IotaAPI iotaAPI = new IotaAPI.Builder().build();
4748

4849
try {
49-
GetAccountDataResponse response = iotaAPI.getAccountData("YOUR9SECRET9SEED9999999...", 3, 816, true, 3, false, 728, 758, true, 100);
50+
GetAccountDataResponse response = iotaAPI.getAccountData("YOUR9SECRET9SEED9999999...", 3, 476, false, 145, false, 344, 775, true, 100);
5051
} catch (ArgumentException e) {
5152
// Handle error
5253
e.printStackTrace();

docs/iota-java/getAddressesUnchecked.md

+1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Generates `amount` of addresses, starting from `index` This does not mean that t
1212

1313
## Output
1414
[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:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| Long duration | Gets the duration. |

docs/iota-java/getBalanceAndFormat.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Gets the balances and formats the output.
1717

1818
## Output
1919
[GetBalancesAndFormatResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetBalancesAndFormatResponse.java), which contains the following fields:
20+
2021
| Return type | Description |
2122
|--|--|
2223
| Long duration | Gets the duration. |
@@ -36,7 +37,7 @@ Gets the balances and formats the output.
3637
IotaAPI iotaAPI = new IotaAPI.Builder().build();
3738

3839
try {
39-
GetBalancesAndFormatResponse response = iotaAPI.getBalanceAndFormat(new List<String>(new String[]{"HZVJZWPBGKYXUSTVKHQQDO9CK9DH9AUGLQAKNVCDMGBATRLGJSCYPZVEHMJDMQJPCPBKKVJAO9BV9ZUHQ", "LGIPDIV9OUQUVLVGF9WJEMCCARDGKK9VIP9O9B9RYZCBACQOXN9RYZXKE9IFIJRFVJXXAHAJFJFJOHPAF"}), new List<String>(new String[]{"EDAGI9BECWRNHYPHVVWXCHYLGDDYTLCZPODUSC9GKXNGHUJUPCTTAXDXDGGLTBYHK9WB9ABHVALLGCJMK", "RGGKRAZZUNQ9GNUPJQAWZSLCZSWSB9NIGDFDERDXIATABSAVBJYBEKUBURHXIZXN9AJWBPIINXNHFZHDS"}), 100, 751, new Stopwatch(), 3);
40+
GetBalancesAndFormatResponse response = iotaAPI.getBalanceAndFormat(new List<String>(new String[]{"VAMTBAMCJUVDGYJZHJEEDPWRGQEUVT9RIZQTBMTRUHBQQYWWVIMAFAHIKVPBKIINFDUAI9OXHSZGCTS9T", "UNHZZKMZTEOSWCWSQMOC9APL99UGLHFK9GAJGCOYGOAIMDVUIZF9M9KCLNUSGGUEMYSKTYSPNMZKUZCOH"}), new List<String>(new String[]{"QKKLAGPKEGOYKSJIPJ9OBCEUMNIDQDMBUZSJHNMWMASYCHLXEVXKMB9BDYRRPT9GCTJXISBGBDSRLEIGY", "WKEXYDXSKIQAKMOTOSHPXKTONGQLORRSRNQODPQCSQCTDDFGWQEXSXUIWBTKWYESSWOPCSMAIBHVQ9B9N"}), 100, 851, new Stopwatch(), 3);
4041
} catch (ArgumentException e) {
4142
// Handle error
4243
e.printStackTrace();

docs/iota-java/getBundle.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Gets the associated bundle transactions of a single transaction. Does validation
1212

1313
## Output
1414
[GetBundleResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetBundleResponse.java), which contains the following fields:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| Long duration | Gets the duration. |
@@ -30,7 +31,7 @@ Gets the associated bundle transactions of a single transaction. Does validation
3031
IotaAPI iotaAPI = new IotaAPI.Builder().build();
3132

3233
try {
33-
GetBundleResponse response = iotaAPI.getBundle("HBVIRLMBDRSCNPNRTYHANHCDKFNFFC9I9ZCZTOSKZLZDAYYCAKPQBYOUTXBGLHTO9VJYRKPNNXIKZWF9D");
34+
GetBundleResponse response = iotaAPI.getBundle("OBMROAQCOJMZPCNIGHUMLJDDYVKWRBWYBINHTKWVIKVDBUOEYOUMTNFJIVXCEZCYPVZK9YQMKRQATUTWW");
3435
} catch (ArgumentException e) {
3536
// Handle error
3637
e.printStackTrace();

docs/iota-java/getId.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ Returns the account’s unique identifier which is a sha256 hash of the account
2121

2222
```Java
2323
IotaAPI iotaAPI = new IotaAPI.Builder().build();
24-
IotaAccount account = new IotaAccount.Builder("MY9SEED9..")
25-
.api(iotaAPI) .build()
24+
IotaAccount account = new IotaAccount.Builder("MY9SEED9..").api(iotaAPI).build()
2625
try {
2726
String response = account.getId();
2827
} catch (AccountError e) {

docs/iota-java/getInputs.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Gets the inputs of a seed If start, end and threshold are 0, checks everything u
1717

1818
## Output
1919
[GetBalancesAndFormatResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetBalancesAndFormatResponse.java), which contains the following fields:
20+
2021
| Return type | Description |
2122
|--|--|
2223
| Long duration | Gets the duration. |
@@ -41,7 +42,7 @@ Gets the inputs of a seed If start, end and threshold are 0, checks everything u
4142
IotaAPI iotaAPI = new IotaAPI.Builder().build();
4243

4344
try {
44-
GetBalancesAndFormatResponse response = iotaAPI.getInputs("YOUR9SECRET9SEED9999999...", 3, 213, 309, 100, new String[]{"OTNNEUALEMGJYMPIQJDAYFFEWLGIDF9PJSHKQLKIITFLRCTCQECHWTNYRT9BWKKLDWOXLGAERMIGCBFPJ", "HFRWZEOWNSI9VF9CYX9RWVRSZKHKWTZFMAWUK9HLPSPCKMEKTQKGLUFRWXKLPKWURPG9AYDPFCWDEJMBH"});
45+
GetBalancesAndFormatResponse response = iotaAPI.getInputs("YOUR9SECRET9SEED9999999...", 3, 657, 715, 100, new String[]{"P9FIGJYGRQILJLVICUANYBZJIODPOSPDNAKOXGXZGNLCTUZMJXMSHZMQXFDJNB9XIOBDNROZPWCSZKDOP", "UYBDJMWUXCJJMLJXWHDUPFAIOIW9IYW9BBXISXIQWPRBEPBEGFRMGJUEXCS9QSDCIMCC9RLDQVETHL9IJ"});
4546
} catch (ArgumentException e) {
4647
// Handle error
4748
e.printStackTrace();

docs/iota-java/getLatestInclusion.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ Wrapper function: runs getNodeInfo and getInclusionStates Uses the latest milest
1212

1313
## Output
1414
[GetInclusionStateResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetInclusionStateResponse.java), which contains the following fields:
15+
1516
| Return type | Description |
1617
|--|--|
1718
| Long duration | Gets the duration. |
@@ -36,7 +37,7 @@ Wrapper function: runs getNodeInfo and getInclusionStates Uses the latest milest
3637
IotaAPI iotaAPI = new IotaAPI.Builder().build();
3738

3839
try {
39-
GetInclusionStateResponse response = iotaAPI.getLatestInclusion(new String[]{"ZNHSWMAMVRCER9KZFWTXR9HBXGZZAFQRCWILTXWBOZGMAEVME9MMZOWQISJSUWDECDEWIALTX9JVEXAB9", "PFICGDBTYS99QMTNH9IZFIOGSAPDALIODODWVHQRQUBXMYKIGITTFLAOASDAJEZH9PHWDCSOIPUONFTOS"});
40+
GetInclusionStateResponse response = iotaAPI.getLatestInclusion(new String[]{"NFJQS9XEJCWEYEMQHIPJKHJGIASPGVYTGNCCVEPVUVIVQSMXIHRZFBKFUNJFVSFMITOFDEJWIQDKCWNFA", "GRRTTPUSUEVLOJSVMZAONAMUSXBAMWIBUTTLAINOTUZYMSTFLRAJHVGINQMPYOHEDCOVSCDU9KZTRCNKB"});
4041
} catch (ArgumentException e) {
4142
// Handle error
4243
e.printStackTrace();

docs/iota-java/getTransfers.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ Finds all the bundles for all the addresses based on this seed and security.
1616

1717
## Output
1818
[GetTransferResponse](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/dto/response/GetTransferResponse.java), which contains the following fields:
19+
1920
| Return type | Description |
2021
|--|--|
2122
| Long duration | Gets the duration. |
@@ -35,7 +36,7 @@ Finds all the bundles for all the addresses based on this seed and security.
3536
IotaAPI iotaAPI = new IotaAPI.Builder().build();
3637

3738
try {
38-
GetTransferResponse response = iotaAPI.getTransfers("YOUR9SECRET9SEED9999999...", 3, 715, 554, true);
39+
GetTransferResponse response = iotaAPI.getTransfers("YOUR9SECRET9SEED9999999...", 3, 576, 928, true);
3940
} catch (ArgumentException e) {
4041
// Handle error
4142
e.printStackTrace();

docs/iota-java/initiateTransfer.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ Prepares transfer by generating the bundle with the corresponding cosigner trans
1717

1818
## Output
1919
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:
20+
2021
| Return type | Description |
2122
|--|--|
2223
| long attachmentTimestampLowerBound | |
@@ -54,7 +55,7 @@ List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/
5455
IotaAPI iotaAPI = new IotaAPI.Builder().build();
5556

5657
try {
57-
List<Transaction> response = iotaAPI.initiateTransfer(762, "ILUGZHSQTRGZIA9IPMVWDXHNNMCHACTU9WKHGIQUTBZRCPPHHHCRNPMSKXZQIXXUMHE9VUQURQWXEPTZT", "BUVRKP9UXTCODJFQLORNOI9LHPVKXVGNBQUCNGUOLHTJGMIPBWAILHJYOIUPSSYFLNNOUWXQYIUCRMQSW", new List<Transfer>(new Transfer[]{transfers, transfers}), new List<Transaction>(new Transaction[]{tips, tips}), true);
58+
List<Transaction> response = iotaAPI.initiateTransfer(272, "WPGX9BLUCWEJXEVLTGXLREOILSSRYGNJNXUUUHUWYXN9PAFAWJKYZFOUTHGABLEBBKEIKQAXYMYFC9LST", "HLCSQIVLQLIWYSAJNUPGILDCUUUPHMGSKEWSXECSP99RMWLU9UUIQPRTCWZHWVQPWAXZAZIMSQCHOHYOQ", new List<Transfer>(new Transfer[]{transfers, transfers}), new List<Transaction>(new Transaction[]{tips, tips}), false);
5859
} catch (ArgumentException e) {
5960
// Handle error
6061
e.printStackTrace();

docs/iota-java/isNew.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ Checks whether the state of the account is new. An account is considered new if
1717

1818
```Java
1919
IotaAPI iotaAPI = new IotaAPI.Builder().build();
20-
IotaAccount account = new IotaAccount.Builder("MY9SEED9..")
21-
.api(iotaAPI) .build()
20+
IotaAccount account = new IotaAccount.Builder("MY9SEED9..").api(iotaAPI).build()
2221
try {
2322
boolean response = account.isNew();
2423
} catch (AccountError e) {

docs/iota-java/load.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,7 @@ Loads the account’s inner event loop to accept commands and provided plugins u
2020

2121
```Java
2222
IotaAPI iotaAPI = new IotaAPI.Builder().build();
23-
IotaAccount account = new IotaAccount.Builder("MY9SEED9..")
24-
.api(iotaAPI) .build()
23+
IotaAccount account = new IotaAccount.Builder("MY9SEED9..").api(iotaAPI).build()
2524
try {
2625
account.load();
2726
} catch (AccountError e) {

docs/iota-java/newDepositAddress.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Allocates a new CDA in the underlying store. Note: Specifying both multi-use and
1515

1616
## Output
1717
Future<[ConditionalDepositAddress](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/account/deposits/ConditionalDepositAddress.java)>, which contains the following fields:
18+
1819
| Return type | Description |
1920
|--|--|
2021
| [DepositRequest](https://github.com/iotaledger/iota-java/blob/master/jota/src/main/java/org/iota/jota/account/deposits/DepositRequest.java) request | The information about this deposit |
@@ -31,10 +32,9 @@ Future<[ConditionalDepositAddress](https://github.com/iotaledger/iota-java/blob/
3132

3233
```Java
3334
IotaAPI iotaAPI = new IotaAPI.Builder().build();
34-
IotaAccount account = new IotaAccount.Builder("MY9SEED9..")
35-
.api(iotaAPI) .build()
35+
IotaAccount account = new IotaAccount.Builder("MY9SEED9..").api(iotaAPI).build()
3636
try {
37-
Future<ConditionalDepositAddress> response = account.newDepositAddress(timeout, false, 548, new ExpireCondition[]{null, null});
37+
Future<ConditionalDepositAddress> response = account.newDepositAddress(timeout, true, 491, new ExpireCondition[]{null, null});
3838
} catch (AccountError e) {
3939
// Handle error
4040
e.printStackTrace();

docs/iota-java/prepareTransfers.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Prepares transfer by generating bundle, finding and signing inputs.
3636
IotaAPI iotaAPI = new IotaAPI.Builder().build();
3737

3838
try {
39-
List<String> response = iotaAPI.prepareTransfers("YOUR9SECRET9SEED9999999...", 3, new List<Transfer>(new Transfer[]{transfers, transfers}), "KHFXVYBEJJVPBGQWBFSSUVLDSEERKSHALKZ9UFGBRMLJZSGVFOOVGCIF9EG9QLPV9KLVYXKVTLIUKYUM9", new List<Input>(new Input[]{inputs, inputs}), new List<Transaction>(new Transaction[]{tips, tips}), true);
39+
List<String> response = iotaAPI.prepareTransfers("YOUR9SECRET9SEED9999999...", 3, new List<Transfer>(new Transfer[]{transfers, transfers}), "MFBOZVTQZLNUATPTH9VWMXAQESBVZLOZSIRJDPGVDOVQXKWBVFOOXJNSESJF9XDMEBSEJPFXQZ9VXO9TR", new List<Input>(new Input[]{inputs, inputs}), new List<Transaction>(new Transaction[]{tips, tips}), false);
4040
} catch (ArgumentException e) {
4141
// Handle error
4242
e.printStackTrace();

docs/iota-java/promoteTransaction.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ Attempts to promote a transaction using a provided bundle and, if successful, re
1515

1616
## Output
1717
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:
18+
1819
| Return type | Description |
1920
|--|--|
2021
| long attachmentTimestampLowerBound | |
@@ -63,7 +64,7 @@ List<[Transaction](https://github.com/iotaledger/iota-java/blob/master/jota/src/
6364
IotaAPI iotaAPI = new IotaAPI.Builder().build();
6465

6566
try {
66-
List<Transaction> response = iotaAPI.promoteTransaction("TLKF9UKMUS9DBAYKEHCTUSYWW9ZHSXMDBRNSYCA9UWXEYZMBAKPVIGDKHGAIUNUULRCYTUZAWAGCJNKAO", 15, 18, bundle);
67+
List<Transaction> response = iotaAPI.promoteTransaction("EELIGC9OMGOGXVNDVOA9D9GBVGPICDB9BXOZXQK9DDDPYQCSQEBTKIYTPKVHC9ZDUFHTFYUWGM9RKHIZL", 15, 18, bundle);
6768
} catch (ArgumentException e) {
6869
// Handle error
6970
e.printStackTrace();

0 commit comments

Comments
 (0)