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 Sep 6, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+29-5Lines changed: 29 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
This is the official Javascript library for the IOTA Core. It implements both the [official API](https://iota.readme.io/), as well as newly proposed functionality (such as signing, bundles, utilities and conversion).
4
4
5
-
It should be noted that the Javascript Library as it stands right now is an **early beta release**. As such, there might be some unexpected results. Please join the community (see links below) and post [issues on here](https://github.com/iotaledger/iota.lib.js/issues), to ensure that the developers of the library can improve it.
5
+
It should be noted that the Javascript Library as it stands right now is an **early beta release**. As such, there might be some unexpected results. Please join the community (see links below) and post [issues on here](https://github.com/iotaledger/iota.lib.js/issues), to ensure that the developers of the library can improve it.
6
6
7
7
> **Join the Discussion**
8
8
@@ -33,11 +33,14 @@ It should be noted that this is a temporary home for the official documentation.
33
33
34
34
## Getting Started
35
35
36
-
After you've successfully installed the library, it is fairly easy to get started by simply launching a new instance of the IOTA object:
36
+
After you've successfully installed the library, it is fairly easy to get started by simply launching a new instance of the IOTA object. When instantiating the object you have the option to decide the `host` and `port` that are used for sending the requests to, as can be seen in the example below:
Wrapper function for `getNodeInfo` and `getInclusionStates`. It simply takes the most recent solid milestone as returned by getNodeInfo, and uses it to get the inclusion states of a list of transaction hashes.
137
+
138
+
139
+
#### Input
140
+
```
141
+
iota.api.getLatestInclusion(hashes, callback)
142
+
```
143
+
144
+
1.**`hashes`**: `Array` List of transaction hashes
145
+
2.**`callback`**: `Function` callback.
146
+
147
+
#### Return Value
148
+
149
+
1.**`Array`** - list of all the inclusion states of the transaction hashes
150
+
151
+
---
152
+
130
153
### `broadcastAndStore`
131
154
132
155
Wrapper function for `broadcastTransactions` and `storeTransactions`.
Returns the transfers which are associated with a seed. The transfers are determined by either calculating deterministically which addresses were already used, or by providing a list of indexes to get the transfers from.
344
+
Returns the transfers which are associated with a seed. The transfers are determined by either calculating deterministically which addresses were already used, or by providing a list of indexes to get the addresses and the associated transfers from. The transfers are sorted by their timestamp. It should be noted that, because timestamps are not enforced in IOTA, that this may lead to incorrectly sorted bundles (meaning that their chronological ordering in the Tangle is different).
0 commit comments