New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@iota-pico/api

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@iota-pico/api - npm Package Compare versions

Comparing version 0.9.5 to 0.9.6

4

CHANGELOG.md
# Changelog
## v0.9.6
* Dependency Updates
## v0.9.5

@@ -4,0 +8,0 @@

36

docs/classes/apiclient.md

@@ -51,3 +51,3 @@ [@iota-pico/api](../README.md) > [ApiClient](../classes/apiclient.md)

*Defined in [client/apiClient.ts:49](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L49)*
*Defined in [client/apiClient.ts:49](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L49)*

@@ -79,3 +79,3 @@ Create an instance of ApiClient.

*Defined in [client/apiClient.ts:94](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L94)*
*Defined in [client/apiClient.ts:94](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L94)*

@@ -102,3 +102,3 @@ Add a list of neighbors to your node. It should be noted that this is only temporary, and the added neighbors will be removed from your set of neighbors after you relaunch IRI.

*Defined in [client/apiClient.ts:237](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L237)*
*Defined in [client/apiClient.ts:237](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L237)*

@@ -125,3 +125,3 @@ Attaches the specified transactions (trytes) to the Tangle by doing Proof of Work. You need to supply branchTransaction as well as trunkTransaction (basically the tips which you're going to validate and reference with this transaction) - both of which you'll get through the getTransactionsToApprove API call.

*Defined in [client/apiClient.ts:269](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L269)*
*Defined in [client/apiClient.ts:269](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L269)*

@@ -148,3 +148,3 @@ Broadcast a list of transactions to all neighbors. The input trytes for this call are provided by attachToTangle.

*Defined in [client/apiClient.ts:308](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L308)*
*Defined in [client/apiClient.ts:308](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L308)*

@@ -171,3 +171,3 @@ Check the consistency of tail hashes.

*Defined in [client/apiClient.ts:136](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L136)*
*Defined in [client/apiClient.ts:136](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L136)*

@@ -194,3 +194,3 @@ Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. The input fields can either be bundles, addresses, tags or approvees. Using multiple of these input fields returns the intersection of the values.

*Defined in [client/apiClient.ts:194](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L194)*
*Defined in [client/apiClient.ts:194](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L194)*

@@ -217,3 +217,3 @@ Returns the confirmed balance which a list of addresses have at the latest confirmed milestone. In addition to the balances, it also returns the milestone as well as the index with which the confirmed balance was determined. The balances is returned as a list in the same order as the addresses were provided as input.

*Defined in [client/apiClient.ts:173](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L173)*
*Defined in [client/apiClient.ts:173](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L173)*

@@ -240,3 +240,3 @@ Get the inclusion states of a set of transactions. This is for determining if a transaction was accepted and confirmed by the network or not. You can search for multiple tips (and thus, milestones) to get past inclusion states of transactions.

*Defined in [client/apiClient.ts:299](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L299)*
*Defined in [client/apiClient.ts:299](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L299)*

@@ -257,3 +257,3 @@ Get transactions with missing references.

*Defined in [client/apiClient.ts:84](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L84)*
*Defined in [client/apiClient.ts:84](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L84)*

@@ -274,3 +274,3 @@ Returns the set of neighbors you are connected with, as well as their activity count. The activity counter is reset after restarting IRI.

*Defined in [client/apiClient.ts:75](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L75)*
*Defined in [client/apiClient.ts:75](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L75)*

@@ -291,3 +291,3 @@ Returns information about your node.

*Defined in [client/apiClient.ts:124](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L124)*
*Defined in [client/apiClient.ts:124](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L124)*

@@ -308,3 +308,3 @@ Returns the list of tips.

*Defined in [client/apiClient.ts:214](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L214)*
*Defined in [client/apiClient.ts:214](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L214)*

@@ -331,3 +331,3 @@ Tip selection which returns trunkTransaction and branchTransaction. The input value is depth, which basically determines how many bundles to go back to for finding the transactions to approve. The higher your depth value, the more "babysitting" you do for the network (as you have to confirm more transactions).

*Defined in [client/apiClient.ts:156](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L156)*
*Defined in [client/apiClient.ts:156](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L156)*

@@ -354,3 +354,3 @@ Returns the raw transaction data (trytes) of a specific transaction. These trytes can then be easily converted into the actual transaction object.

*Defined in [client/apiClient.ts:260](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L260)*
*Defined in [client/apiClient.ts:260](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L260)*

@@ -371,3 +371,3 @@ Interrupts and completely aborts the attachToTangle process

*Defined in [client/apiClient.ts:110](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L110)*
*Defined in [client/apiClient.ts:110](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L110)*

@@ -394,3 +394,3 @@ Removes a list of neighbors from your node. This is only temporary, and if you have your neighbors added via the command line, they will be retained after you restart your node.

*Defined in [client/apiClient.ts:284](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L284)*
*Defined in [client/apiClient.ts:284](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L284)*

@@ -417,3 +417,3 @@ Store transactions into the local storage. The trytes to be used for this call are returned by attachToTangle.

*Defined in [client/apiClient.ts:323](https://github.com/iota-pico/api/blob/f238b42/src/client/apiClient.ts#L323)*
*Defined in [client/apiClient.ts:323](https://github.com/iota-pico/api/blob/4db1362/src/client/apiClient.ts#L323)*

@@ -420,0 +420,0 @@ Have the requested addresses been spent from already.

@@ -45,3 +45,3 @@ [@iota-pico/api](../README.md) > [ApiError](../classes/apierror.md)

*Defined in [error/apiError.ts:6](https://github.com/iota-pico/api/blob/f238b42/src/error/apiError.ts#L6)*
*Defined in [error/apiError.ts:6](https://github.com/iota-pico/api/blob/4db1362/src/error/apiError.ts#L6)*

@@ -115,3 +115,3 @@ Create an instance of ApiError.

*Defined in D:/Workarea/iota-pico/api/node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:886*
*Defined in D:/Workarea/iota-pico/api/node_modules/.registry.npmjs.org/typescript/2.7.2/node_modules/typescript/lib/lib.es5.d.ts:886*

@@ -127,3 +127,3 @@ ___

*Defined in D:/Workarea/iota-pico/api/node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:885*
*Defined in D:/Workarea/iota-pico/api/node_modules/.registry.npmjs.org/typescript/2.7.2/node_modules/typescript/lib/lib.es5.d.ts:885*

@@ -139,3 +139,3 @@ ___

*Defined in D:/Workarea/iota-pico/api/node_modules/typedoc/node_modules/typescript/lib/lib.es5.d.ts:887*
*Defined in D:/Workarea/iota-pico/api/node_modules/.registry.npmjs.org/typescript/2.7.2/node_modules/typescript/lib/lib.es5.d.ts:887*

@@ -142,0 +142,0 @@ ___

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [IAddNeighborsRequest](../interfaces/iaddneighborsrequest.md)

*Defined in [models/IAddNeighborsRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IAddNeighborsRequest.ts#L9)*
*Defined in [models/IAddNeighborsRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IAddNeighborsRequest.ts#L9)*

@@ -31,0 +31,0 @@ List of URI elements.

@@ -31,3 +31,3 @@ [@iota-pico/api](../README.md) > [IAddNeighborsResponse](../interfaces/iaddneighborsresponse.md)

*Defined in [models/IAddNeighborsResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IAddNeighborsResponse.ts#L11)*
*Defined in [models/IAddNeighborsResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IAddNeighborsResponse.ts#L11)*

@@ -45,3 +45,3 @@ The number of neighbours added.

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -48,0 +48,0 @@ The duration of the request.

@@ -48,3 +48,3 @@ [@iota-pico/api](../README.md) > [IApiClient](../interfaces/iapiclient.md)

*Defined in [interfaces/IApiClient.ts:52](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L52)*
*Defined in [interfaces/IApiClient.ts:52](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L52)*

@@ -57,3 +57,3 @@ Add a list of neighbors to your node. It should be noted that this is only temporary, and the added neighbors will be removed from your set of neighbors after you relaunch IRI.

| ------ | ------ |
| request | [IAddNeighborsRequest](iaddneighborsrequest.md) |
| request | [IAddNeighborsRequest](iaddneighborsrequest.md) |

@@ -70,3 +70,3 @@ **Returns:** `Promise`<[IAddNeighborsResponse](iaddneighborsresponse.md)>

*Defined in [interfaces/IApiClient.ts:117](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L117)*
*Defined in [interfaces/IApiClient.ts:117](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L117)*

@@ -91,3 +91,3 @@ Attaches the specified transactions (trytes) to the Tangle by doing Proof of Work. You need to supply branchTransaction as well as trunkTransaction (basically the tips which you're going to validate and reference with this transaction) - both of which you'll get through the getTransactionsToApprove API call.

*Defined in [interfaces/IApiClient.ts:130](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L130)*
*Defined in [interfaces/IApiClient.ts:130](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L130)*

@@ -112,3 +112,3 @@ Broadcast a list of transactions to all neighbors. The input trytes for this call are provided by attachToTangle.

*Defined in [interfaces/IApiClient.ts:151](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L151)*
*Defined in [interfaces/IApiClient.ts:151](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L151)*

@@ -133,3 +133,3 @@ Check the consistency of tail hashes.

*Defined in [interfaces/IApiClient.ts:74](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L74)*
*Defined in [interfaces/IApiClient.ts:74](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L74)*

@@ -142,3 +142,3 @@ Find the transactions which match the specified input and return. All input values are lists, for which a list of return values (transaction hashes), in the same order, is returned for all individual elements. The input fields can either be bundles, addresses, tags or approvees. Using multiple of these input fields returns the intersection of the values.

| ------ | ------ |
| request | [IFindTransactionsRequest](ifindtransactionsrequest.md) |
| request | [IFindTransactionsRequest](ifindtransactionsrequest.md) |

@@ -155,3 +155,3 @@ **Returns:** `Promise`<[IFindTransactionsResponse](ifindtransactionsresponse.md)>

*Defined in [interfaces/IApiClient.ts:99](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L99)*
*Defined in [interfaces/IApiClient.ts:99](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L99)*

@@ -176,3 +176,3 @@ Returns the confirmed balance which a list of addresses have at the latest confirmed milestone. In addition to the balances, it also returns the milestone as well as the index with which the confirmed balance was determined. The balances is returned as a list in the same order as the addresses were provided as input.

*Defined in [interfaces/IApiClient.ts:89](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L89)*
*Defined in [interfaces/IApiClient.ts:89](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L89)*

@@ -185,3 +185,3 @@ Get the inclusion states of a set of transactions. This is for determining if a transaction was accepted and confirmed by the network or not. You can search for multiple tips (and thus, milestones) to get past inclusion states of transactions.

| ------ | ------ |
| request | [IGetInclusionStatesRequest](igetinclusionstatesrequest.md) |
| request | [IGetInclusionStatesRequest](igetinclusionstatesrequest.md) |

@@ -198,3 +198,3 @@ **Returns:** `Promise`<[IGetInclusionStatesResponse](igetinclusionstatesresponse.md)>

*Defined in [interfaces/IApiClient.ts:144](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L144)*
*Defined in [interfaces/IApiClient.ts:144](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L144)*

@@ -213,3 +213,3 @@ Get transactions with missing references.

*Defined in [interfaces/IApiClient.ts:45](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L45)*
*Defined in [interfaces/IApiClient.ts:45](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L45)*

@@ -228,3 +228,3 @@ Returns the set of neighbors you are connected with, as well as their activity count. The activity counter is reset after restarting IRI.

*Defined in [interfaces/IApiClient.ts:38](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L38)*
*Defined in [interfaces/IApiClient.ts:38](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L38)*

@@ -243,3 +243,3 @@ Returns information about your node.

*Defined in [interfaces/IApiClient.ts:65](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L65)*
*Defined in [interfaces/IApiClient.ts:65](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L65)*

@@ -258,3 +258,3 @@ Returns the list of tips.

*Defined in [interfaces/IApiClient.ts:108](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L108)*
*Defined in [interfaces/IApiClient.ts:108](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L108)*

@@ -279,3 +279,3 @@ Tip selection which returns trunkTransaction and branchTransaction. The input value is depth, which basically determines how many bundles to go back to for finding the transactions to approve. The higher your depth value, the more "babysitting" you do for the network (as you have to confirm more transactions).

*Defined in [interfaces/IApiClient.ts:81](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L81)*
*Defined in [interfaces/IApiClient.ts:81](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L81)*

@@ -288,3 +288,3 @@ Returns the raw transaction data (trytes) of a specific transaction. These trytes can then be easily converted into the actual transaction object.

| ------ | ------ |
| request | [IGetTrytesRequest](igettrytesrequest.md) |
| request | [IGetTrytesRequest](igettrytesrequest.md) |

@@ -301,3 +301,3 @@ **Returns:** `Promise`<[IGetTrytesResponse](igettrytesresponse.md)>

*Defined in [interfaces/IApiClient.ts:123](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L123)*
*Defined in [interfaces/IApiClient.ts:123](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L123)*

@@ -316,3 +316,3 @@ Interrupts and completely aborts the attachToTangle process

*Defined in [interfaces/IApiClient.ts:59](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L59)*
*Defined in [interfaces/IApiClient.ts:59](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L59)*

@@ -325,3 +325,3 @@ Removes a list of neighbors from your node. This is only temporary, and if you have your neighbors added via the command line, they will be retained after you restart your node.

| ------ | ------ |
| request | [IRemoveNeighborsRequest](iremoveneighborsrequest.md) |
| request | [IRemoveNeighborsRequest](iremoveneighborsrequest.md) |

@@ -338,3 +338,3 @@ **Returns:** `Promise`<[IRemoveNeighborsResponse](iremoveneighborsresponse.md)>

*Defined in [interfaces/IApiClient.ts:137](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L137)*
*Defined in [interfaces/IApiClient.ts:137](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L137)*

@@ -359,3 +359,3 @@ Store transactions into the local storage. The trytes to be used for this call are returned by attachToTangle.

*Defined in [interfaces/IApiClient.ts:158](https://github.com/iota-pico/api/blob/f238b42/src/interfaces/IApiClient.ts#L158)*
*Defined in [interfaces/IApiClient.ts:158](https://github.com/iota-pico/api/blob/4db1362/src/interfaces/IApiClient.ts#L158)*

@@ -362,0 +362,0 @@ Have the requested addresses been spent from already.

@@ -31,3 +31,3 @@ [@iota-pico/api](../README.md) > [IAttachToTangleRequest](../interfaces/iattachtotanglerequest.md)

*Defined in [models/IAttachToTangleRequest.ts:13](https://github.com/iota-pico/api/blob/f238b42/src/models/IAttachToTangleRequest.ts#L13)*
*Defined in [models/IAttachToTangleRequest.ts:13](https://github.com/iota-pico/api/blob/4db1362/src/models/IAttachToTangleRequest.ts#L13)*

@@ -43,3 +43,3 @@ Branch transaction to approve.

*Defined in [models/IAttachToTangleRequest.ts:17](https://github.com/iota-pico/api/blob/f238b42/src/models/IAttachToTangleRequest.ts#L17)*
*Defined in [models/IAttachToTangleRequest.ts:17](https://github.com/iota-pico/api/blob/4db1362/src/models/IAttachToTangleRequest.ts#L17)*

@@ -55,3 +55,3 @@ Proof of Work intensity. Minimum value is 18

*Defined in [models/IAttachToTangleRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IAttachToTangleRequest.ts#L9)*
*Defined in [models/IAttachToTangleRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IAttachToTangleRequest.ts#L9)*

@@ -67,3 +67,3 @@ Trunk transaction to approve.

*Defined in [models/IAttachToTangleRequest.ts:21](https://github.com/iota-pico/api/blob/f238b42/src/models/IAttachToTangleRequest.ts#L21)*
*Defined in [models/IAttachToTangleRequest.ts:21](https://github.com/iota-pico/api/blob/4db1362/src/models/IAttachToTangleRequest.ts#L21)*

@@ -70,0 +70,0 @@ List of trytes (raw transaction data) to attach to the tangle.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IAttachToTangleResponse](../interfaces/iattachtotangleresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IAttachToTangleResponse.ts:12](https://github.com/iota-pico/api/blob/f238b42/src/models/IAttachToTangleResponse.ts#L12)*
*Defined in [models/IAttachToTangleResponse.ts:12](https://github.com/iota-pico/api/blob/4db1362/src/models/IAttachToTangleResponse.ts#L12)*

@@ -48,0 +48,0 @@ The returned tryte value, the last 243 trytes basically consist of the: trunkTransaction + branchTransaction + nonce.

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [IBroadcastTransactionsRequest](../interfaces/ibroadcasttransactionsrequest.md)

*Defined in [models/IBroadcastTransactionsRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IBroadcastTransactionsRequest.ts#L9)*
*Defined in [models/IBroadcastTransactionsRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IBroadcastTransactionsRequest.ts#L9)*

@@ -31,0 +31,0 @@ List of raw data of transactions to be rebroadcast.

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [ICheckConsistencyRequest](../interfaces/icheckconsistencyrequest.md)

*Defined in [models/ICheckConsistencyRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICheckConsistencyRequest.ts#L9)*
*Defined in [models/ICheckConsistencyRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICheckConsistencyRequest.ts#L9)*

@@ -31,0 +31,0 @@ The tail hashes to check for consistency.

@@ -34,3 +34,3 @@ [@iota-pico/api](../README.md) > [ICheckConsistencyResponse](../interfaces/icheckconsistencyresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -46,3 +46,3 @@ The duration of the request.

*Defined in [models/ICheckConsistencyResponse.ts:15](https://github.com/iota-pico/api/blob/f238b42/src/models/ICheckConsistencyResponse.ts#L15)*
*Defined in [models/ICheckConsistencyResponse.ts:15](https://github.com/iota-pico/api/blob/4db1362/src/models/ICheckConsistencyResponse.ts#L15)*

@@ -58,3 +58,3 @@ Is the tail reference consistent.

*Defined in [models/ICheckConsistencyResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/ICheckConsistencyResponse.ts#L11)*
*Defined in [models/ICheckConsistencyResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/ICheckConsistencyResponse.ts#L11)*

@@ -61,0 +61,0 @@ Is the tail reference consistent.

@@ -56,3 +56,3 @@ [@iota-pico/api](../README.md) > [ICommonResponse](../interfaces/icommonresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -59,0 +59,0 @@ The duration of the request.

@@ -31,3 +31,3 @@ [@iota-pico/api](../README.md) > [IFindTransactionsRequest](../interfaces/ifindtransactionsrequest.md)

*Defined in [models/IFindTransactionsRequest.ts:13](https://github.com/iota-pico/api/blob/f238b42/src/models/IFindTransactionsRequest.ts#L13)*
*Defined in [models/IFindTransactionsRequest.ts:13](https://github.com/iota-pico/api/blob/4db1362/src/models/IFindTransactionsRequest.ts#L13)*

@@ -43,3 +43,3 @@ List of addresses.

*Defined in [models/IFindTransactionsRequest.ts:21](https://github.com/iota-pico/api/blob/f238b42/src/models/IFindTransactionsRequest.ts#L21)*
*Defined in [models/IFindTransactionsRequest.ts:21](https://github.com/iota-pico/api/blob/4db1362/src/models/IFindTransactionsRequest.ts#L21)*

@@ -55,3 +55,3 @@ List of approvees of a transaction.

*Defined in [models/IFindTransactionsRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IFindTransactionsRequest.ts#L9)*
*Defined in [models/IFindTransactionsRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IFindTransactionsRequest.ts#L9)*

@@ -67,3 +67,3 @@ List of bundle hashes. The hashes need to be extended to 81chars by padding the hash with 9's.

*Defined in [models/IFindTransactionsRequest.ts:17](https://github.com/iota-pico/api/blob/f238b42/src/models/IFindTransactionsRequest.ts#L17)*
*Defined in [models/IFindTransactionsRequest.ts:17](https://github.com/iota-pico/api/blob/4db1362/src/models/IFindTransactionsRequest.ts#L17)*

@@ -70,0 +70,0 @@ List of transaction tags.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IFindTransactionsResponse](../interfaces/ifindtransactionsresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IFindTransactionsResponse.ts:16](https://github.com/iota-pico/api/blob/f238b42/src/models/IFindTransactionsResponse.ts#L16)*
*Defined in [models/IFindTransactionsResponse.ts:16](https://github.com/iota-pico/api/blob/4db1362/src/models/IFindTransactionsResponse.ts#L16)*

@@ -48,0 +48,0 @@ The transaction hashes which are returned depend on your input. For each specified input value, the command will return the following: bundles: returns the list of transactions which contain the specified bundle hash. addresses: returns the list of transactions which have the specified address as an input/output field. tags: returns the list of transactions which contain the specified tag value. approvees: returns the list of transaction which reference (i.e. confirm) the specified transaction.

@@ -29,3 +29,3 @@ [@iota-pico/api](../README.md) > [IGetBalancesRequest](../interfaces/igetbalancesrequest.md)

*Defined in [models/IGetBalancesRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetBalancesRequest.ts#L9)*
*Defined in [models/IGetBalancesRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetBalancesRequest.ts#L9)*

@@ -41,3 +41,3 @@ List of addresses you want to get the confirmed balance from.

*Defined in [models/IGetBalancesRequest.ts:13](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetBalancesRequest.ts#L13)*
*Defined in [models/IGetBalancesRequest.ts:13](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetBalancesRequest.ts#L13)*

@@ -44,0 +44,0 @@ Confirmation threshold, should be set to 100.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IGetBalancesResponse](../interfaces/igetbalancesresponse.md)

*Defined in [models/IGetBalancesResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetBalancesResponse.ts#L11)*
*Defined in [models/IGetBalancesResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetBalancesResponse.ts#L11)*

@@ -47,3 +47,3 @@ List of balances for the addresses.

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -59,3 +59,3 @@ The duration of the request.

*Defined in [models/IGetBalancesResponse.ts:15](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetBalancesResponse.ts#L15)*
*Defined in [models/IGetBalancesResponse.ts:15](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetBalancesResponse.ts#L15)*

@@ -71,3 +71,3 @@ The milestone at which the balances were calculated.

*Defined in [models/IGetBalancesResponse.ts:19](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetBalancesResponse.ts#L19)*
*Defined in [models/IGetBalancesResponse.ts:19](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetBalancesResponse.ts#L19)*

@@ -74,0 +74,0 @@ The milestone index at which the balances were calculated.

@@ -29,3 +29,3 @@ [@iota-pico/api](../README.md) > [IGetInclusionStatesRequest](../interfaces/igetinclusionstatesrequest.md)

*Defined in [models/IGetInclusionStatesRequest.ts:13](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetInclusionStatesRequest.ts#L13)*
*Defined in [models/IGetInclusionStatesRequest.ts:13](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetInclusionStatesRequest.ts#L13)*

@@ -41,3 +41,3 @@ List of tips (including milestones) you want to search for the inclusion state.

*Defined in [models/IGetInclusionStatesRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetInclusionStatesRequest.ts#L9)*
*Defined in [models/IGetInclusionStatesRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetInclusionStatesRequest.ts#L9)*

@@ -44,0 +44,0 @@ List of transactions you want to get the inclusion state for.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IGetInclusionStatesResponse](../interfaces/igetinclusionstatesresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IGetInclusionStatesResponse.ts:12](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetInclusionStatesResponse.ts#L12)*
*Defined in [models/IGetInclusionStatesResponse.ts:12](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetInclusionStatesResponse.ts#L12)*

@@ -48,0 +48,0 @@ List of boolean values in the same order as the transaction list you submitted, thus you get a true/false whether a transaction is confirmed or not.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IGetMissingTransactionsResponse](../interfaces/igetmissingtransactionsresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IGetMissingTransactionsResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetMissingTransactionsResponse.ts#L11)*
*Defined in [models/IGetMissingTransactionsResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetMissingTransactionsResponse.ts#L11)*

@@ -48,0 +48,0 @@ The transactions with missing references.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IGetNeighborsResponse](../interfaces/igetneighborsresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IGetNeighborsResponse.ts:12](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNeighborsResponse.ts#L12)*
*Defined in [models/IGetNeighborsResponse.ts:12](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNeighborsResponse.ts#L12)*

@@ -48,0 +48,0 @@ The neighbors of the node.

@@ -46,3 +46,3 @@ [@iota-pico/api](../README.md) > [IGetNodeInfoResponse](../interfaces/igetnodeinforesponse.md)

*Defined in [models/IGetNodeInfoResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L11)*
*Defined in [models/IGetNodeInfoResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L11)*

@@ -58,3 +58,3 @@ Name of the IOTA software you're currently using (IRI stands for Initial Reference Implementation).

*Defined in [models/IGetNodeInfoResponse.ts:15](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L15)*
*Defined in [models/IGetNodeInfoResponse.ts:15](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L15)*

@@ -72,3 +72,3 @@ The version of the IOTA software you're currently running.

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -84,3 +84,3 @@ The duration of the request.

*Defined in [models/IGetNodeInfoResponse.ts:19](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L19)*
*Defined in [models/IGetNodeInfoResponse.ts:19](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L19)*

@@ -96,3 +96,3 @@ Available cores on your machine for JRE.

*Defined in [models/IGetNodeInfoResponse.ts:27](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L27)*
*Defined in [models/IGetNodeInfoResponse.ts:27](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L27)*

@@ -108,3 +108,3 @@ Returns the amount of free memory in the Java Virtual Machine.

*Defined in [models/IGetNodeInfoResponse.ts:31](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L31)*
*Defined in [models/IGetNodeInfoResponse.ts:31](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L31)*

@@ -120,3 +120,3 @@ Returns the maximum amount of memory that the Java virtual machine will attempt to use.

*Defined in [models/IGetNodeInfoResponse.ts:35](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L35)*
*Defined in [models/IGetNodeInfoResponse.ts:35](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L35)*

@@ -132,3 +132,3 @@ Returns the total amount of memory in the Java virtual machine.

*Defined in [models/IGetNodeInfoResponse.ts:23](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L23)*
*Defined in [models/IGetNodeInfoResponse.ts:23](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L23)*

@@ -144,3 +144,3 @@ The version of the Java Virtual Machine.

*Defined in [models/IGetNodeInfoResponse.ts:39](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L39)*
*Defined in [models/IGetNodeInfoResponse.ts:39](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L39)*

@@ -156,3 +156,3 @@ Latest milestone that was signed off by the coordinator.

*Defined in [models/IGetNodeInfoResponse.ts:43](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L43)*
*Defined in [models/IGetNodeInfoResponse.ts:43](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L43)*

@@ -168,3 +168,3 @@ Index of the latest milestone.

*Defined in [models/IGetNodeInfoResponse.ts:49](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L49)*
*Defined in [models/IGetNodeInfoResponse.ts:49](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L49)*

@@ -180,3 +180,3 @@ The latest milestone which is solid and is used for sending transactions. For a milestone to become solid your local node must basically approve the subtangle of coordinator-approved transactions, and have a consistent view of all referenced transactions.

*Defined in [models/IGetNodeInfoResponse.ts:53](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L53)*
*Defined in [models/IGetNodeInfoResponse.ts:53](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L53)*

@@ -192,3 +192,3 @@ Index of the latest solid subtangle.

*Defined in [models/IGetNodeInfoResponse.ts:57](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L57)*
*Defined in [models/IGetNodeInfoResponse.ts:57](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L57)*

@@ -204,3 +204,3 @@ Number of neighbors you are directly connected with.

*Defined in [models/IGetNodeInfoResponse.ts:61](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L61)*
*Defined in [models/IGetNodeInfoResponse.ts:61](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L61)*

@@ -216,3 +216,3 @@ Packets which are currently queued up.

*Defined in [models/IGetNodeInfoResponse.ts:65](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L65)*
*Defined in [models/IGetNodeInfoResponse.ts:65](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L65)*

@@ -228,3 +228,3 @@ Current UNIX timestamp.

*Defined in [models/IGetNodeInfoResponse.ts:69](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L69)*
*Defined in [models/IGetNodeInfoResponse.ts:69](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L69)*

@@ -240,3 +240,3 @@ Number of tips in the network.

*Defined in [models/IGetNodeInfoResponse.ts:73](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetNodeInfoResponse.ts#L73)*
*Defined in [models/IGetNodeInfoResponse.ts:73](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetNodeInfoResponse.ts#L73)*

@@ -243,0 +243,0 @@ Transactions to request during syncing process.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IGetTipsResponse](../interfaces/igettipsresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IGetTipsResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTipsResponse.ts#L11)*
*Defined in [models/IGetTipsResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTipsResponse.ts#L11)*

@@ -48,0 +48,0 @@ The hashes for the tips.

@@ -30,3 +30,3 @@ [@iota-pico/api](../README.md) > [IGetTransactionsToApproveRequest](../interfaces/igettransactionstoapproverequest.md)

*Defined in [models/IGetTransactionsToApproveRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTransactionsToApproveRequest.ts#L9)*
*Defined in [models/IGetTransactionsToApproveRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTransactionsToApproveRequest.ts#L9)*

@@ -42,3 +42,3 @@ Number of bundles to go back to determine the transactions for approval.

*Defined in [models/IGetTransactionsToApproveRequest.ts:19](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTransactionsToApproveRequest.ts#L19)*
*Defined in [models/IGetTransactionsToApproveRequest.ts:19](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTransactionsToApproveRequest.ts#L19)*

@@ -54,3 +54,3 @@ The number of walks to perform.

*Defined in [models/IGetTransactionsToApproveRequest.ts:14](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTransactionsToApproveRequest.ts#L14)*
*Defined in [models/IGetTransactionsToApproveRequest.ts:14](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTransactionsToApproveRequest.ts#L14)*

@@ -57,0 +57,0 @@ The reference to include in the lookup.

@@ -32,3 +32,3 @@ [@iota-pico/api](../README.md) > [IGetTransactionsToApproveResponse](../interfaces/igettransactionstoapproveresponse.md)

*Defined in [models/IGetTransactionsToApproveResponse.ts:15](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTransactionsToApproveResponse.ts#L15)*
*Defined in [models/IGetTransactionsToApproveResponse.ts:15](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTransactionsToApproveResponse.ts#L15)*

@@ -46,3 +46,3 @@ The branch transaction.

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -58,3 +58,3 @@ The duration of the request.

*Defined in [models/IGetTransactionsToApproveResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTransactionsToApproveResponse.ts#L11)*
*Defined in [models/IGetTransactionsToApproveResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTransactionsToApproveResponse.ts#L11)*

@@ -61,0 +61,0 @@ The trunk transaction.

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [IGetTrytesRequest](../interfaces/igettrytesrequest.md)

*Defined in [models/IGetTrytesRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTrytesRequest.ts#L9)*
*Defined in [models/IGetTrytesRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTrytesRequest.ts#L9)*

@@ -31,0 +31,0 @@ List of transaction hashes of which you want to get trytes from.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IGetTrytesResponse](../interfaces/igettrytesresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IGetTrytesResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IGetTrytesResponse.ts#L11)*
*Defined in [models/IGetTrytesResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IGetTrytesResponse.ts#L11)*

@@ -48,0 +48,0 @@ Trytes of the requested hashes.

@@ -31,3 +31,3 @@ [@iota-pico/api](../README.md) > [INeighbor](../interfaces/ineighbor.md)

*Defined in [models/INeighbor.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/INeighbor.ts#L9)*
*Defined in [models/INeighbor.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/INeighbor.ts#L9)*

@@ -43,3 +43,3 @@ The address of your peer.

*Defined in [models/INeighbor.ts:13](https://github.com/iota-pico/api/blob/f238b42/src/models/INeighbor.ts#L13)*
*Defined in [models/INeighbor.ts:13](https://github.com/iota-pico/api/blob/4db1362/src/models/INeighbor.ts#L13)*

@@ -55,3 +55,3 @@ Number of all transactions sent (invalid, valid, already-seen).

*Defined in [models/INeighbor.ts:18](https://github.com/iota-pico/api/blob/f238b42/src/models/INeighbor.ts#L18)*
*Defined in [models/INeighbor.ts:18](https://github.com/iota-pico/api/blob/4db1362/src/models/INeighbor.ts#L18)*

@@ -67,3 +67,3 @@ Invalid transactions your peer has sent you. These are transactions with invalid signatures or overall schema.

*Defined in [models/INeighbor.ts:22](https://github.com/iota-pico/api/blob/f238b42/src/models/INeighbor.ts#L22)*
*Defined in [models/INeighbor.ts:22](https://github.com/iota-pico/api/blob/4db1362/src/models/INeighbor.ts#L22)*

@@ -70,0 +70,0 @@ New transactions which were transmitted.

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [IRemoveNeighborsRequest](../interfaces/iremoveneighborsrequest.md)

*Defined in [models/IRemoveNeighborsRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IRemoveNeighborsRequest.ts#L9)*
*Defined in [models/IRemoveNeighborsRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IRemoveNeighborsRequest.ts#L9)*

@@ -31,0 +31,0 @@ List of URI elements.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IRemoveNeighborsResponse](../interfaces/iremoveneighborsresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IRemoveNeighborsResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IRemoveNeighborsResponse.ts#L11)*
*Defined in [models/IRemoveNeighborsResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IRemoveNeighborsResponse.ts#L11)*

@@ -48,0 +48,0 @@ The number of neighbours removed.

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [IStoreTransactionsRequest](../interfaces/istoretransactionsrequest.md)

*Defined in [models/IStoreTransactionsRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IStoreTransactionsRequest.ts#L9)*
*Defined in [models/IStoreTransactionsRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IStoreTransactionsRequest.ts#L9)*

@@ -31,0 +31,0 @@ List of raw data of transactions to be stored.

@@ -28,3 +28,3 @@ [@iota-pico/api](../README.md) > [IWereAddressesSpentFromRequest](../interfaces/iwereaddressesspentfromrequest.md)

*Defined in [models/IWereAddressesSpentFromRequest.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/IWereAddressesSpentFromRequest.ts#L9)*
*Defined in [models/IWereAddressesSpentFromRequest.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/IWereAddressesSpentFromRequest.ts#L9)*

@@ -31,0 +31,0 @@ The address hashes to check if they were spent from.

@@ -33,3 +33,3 @@ [@iota-pico/api](../README.md) > [IWereAddressesSpentFromResponse](../interfaces/iwereaddressesspentfromresponse.md)

*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/f238b42/src/models/ICommonResponse.ts#L9)*
*Defined in [models/ICommonResponse.ts:9](https://github.com/iota-pico/api/blob/4db1362/src/models/ICommonResponse.ts#L9)*

@@ -45,3 +45,3 @@ The duration of the request.

*Defined in [models/IWereAddressesSpentFromResponse.ts:11](https://github.com/iota-pico/api/blob/f238b42/src/models/IWereAddressesSpentFromResponse.ts#L11)*
*Defined in [models/IWereAddressesSpentFromResponse.ts:11](https://github.com/iota-pico/api/blob/4db1362/src/models/IWereAddressesSpentFromResponse.ts#L11)*

@@ -48,0 +48,0 @@ States which are true if the corresponding input address was spent from.

{
"name": "@iota-pico/api",
"version": "0.9.5",
"version": "0.9.6",
"description": "IOTA Pico Framework API",

@@ -50,3 +50,3 @@ "typings": "dist/index.d.ts",

"dependencies": {
"@iota-pico/core": "^0.9.5"
"@iota-pico/core": "^0.9.6"
},

@@ -58,29 +58,29 @@ "devDependencies": {

"@babel/runtime": "^7.0.0-beta.42",
"@types/chai": "^4.1.3",
"@types/chai": "^4.1.4",
"@types/mocha": "^5.2.0",
"@types/sinon": "^4.3.1",
"@types/sinon": "^5.0.1",
"babel-loader": "^8.0.0-beta.0",
"babel-plugin-transform-builtin-extend": "^1.1.2",
"chai": "^4.1.2",
"coveralls": "^3.0.0",
"cross-env": "^5.1.4",
"coveralls": "^3.0.1",
"cross-env": "^5.2.0",
"minicat": "^1.0.0",
"mocha": "^5.1.1",
"npm-run-all": "^4.1.2",
"npm-run-all": "^4.1.3",
"nsp": "^3.2.1",
"nyc": "^11.7.1",
"nyc": "^12.0.2",
"rimraf": "^2.6.2",
"sinon": "^4.5.0",
"source-map-support": "^0.5.5",
"ts-node": "^6.0.1",
"tslint": "^5.9.1",
"tslint-eslint-rules": "^5.1.0",
"sinon": "^6.0.0",
"source-map-support": "^0.5.6",
"ts-node": "^6.0.3",
"tslint": "^5.10.0",
"tslint-eslint-rules": "^5.3.1",
"tslint-microsoft-contrib": "^5.0.3",
"typedoc": "^0.11.1",
"typedoc-plugin-markdown": "^1.1.6",
"typescript": "^2.8.3",
"typedoc-plugin-markdown": "^1.1.10",
"typescript": "^2.9.2",
"uglifyjs-webpack-plugin": "^1.2.5",
"webpack": "^4.6.0",
"webpack-cli": "^2.0.15"
"webpack": "^4.8.3",
"webpack-cli": "^3.0.8"
}
}

@@ -1,1 +0,1 @@

!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@iota-pico/api",[],t):"object"==typeof exports?exports["@iota-pico/api"]=t():e.IotaPicoApi=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}Object.defineProperty(t,"__esModule",{value:!0});var i=r(4),a=function(e){function t(e,r,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=o(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r,n))).domain="API",i}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,i.CoreError),t}();t.ApiError=a},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isString",value:function(e){return null!==e&&void 0!==e&&"[object String]"===Object.prototype.toString.call(e)}},{key:"isEmpty",value:function(t){return!e.isString(t)||0===t.length}},{key:"isAscii",value:function(e){return null!==e&&void 0!==e&&/^[\x00-\xFF]*$/.test(e)}},{key:"encodeNonASCII",value:function(t){return e.isString(t)?t.replace(/[\u007F-\uFFFF]/g,function(e){return"\\u".concat("0000".concat(e.charCodeAt(0).toString(16)).substr(-4))}):void 0}},{key:"decodeNonASCII",value:function(t){return e.isString(t)?t.replace(/\\u([\d\w]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}):void 0}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.StringHelper=o},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isEmpty",value:function(e){return null===e||void 0===e}},{key:"isObject",value:function(e){return null!==e&&void 0!==e&&"object"===n(e)&&!Array.isArray(e)}},{key:"isType",value:function(t,r){var n=e.getClassName(t);return void 0!==n&&n===e.getClassName(r)}},{key:"getClassName",value:function(e){if(null!==e&&void 0!==e){var t=("function"==typeof e?e.toString():e.constructor.toString()).match(/\w+/g);return t&&t.length>1?t[1]:void 0}}}],null&&o(t.prototype,null),r&&o(t,r),e}();t.ObjectHelper=i},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"stringify",value:function(e,t,r){var o=[];return JSON.stringify(e,function(r,i){if("object"===n(i)&&null!==e&&void 0!==i){if(-1!==o.indexOf(i))return;o.push(i)}return t?t(r,i):i},r)}}],null&&o(t.prototype,null),r&&o(t,r),e}();t.JsonHelper=i},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}Object.defineProperty(t,"__esModule",{value:!0});var a=r(3),u=r(1),s=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=i(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e))).additional=r||{},o.innerError=n,o.domain="Core",o}var r,s,c;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),r=t,c=[{key:"isError",value:function(e){return void 0!==e&&null!==e&&"object"===n(e)&&"message"in e&&"additional"in e}}],(s=[{key:"format",value:function(){var e=this,t="";u.StringHelper.isEmpty(this.domain)||(t+="".concat(this.domain,": ")),u.StringHelper.isEmpty(this.message)||(t+="".concat(this.message));var r=Object.keys(this.additional);return r.length>0&&(t.length>0&&(t+="\n"),r.forEach(function(r){t+="\t".concat(r,": ").concat(a.JsonHelper.stringify(e.additional[r]),"\n")})),t}}])&&o(r.prototype,s),c&&o(r,c),t}();t.CoreError=s},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"banner",value:function(e){}},{key:"log",value:function(e){}},{key:"info",value:function(e){}},{key:"warning",value:function(e){}},{key:"error",value:function(e,t){}}])&&n(t.prototype,r),e}();t.NullLogger=o},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isInteger",value:function(e){return Number.isInteger(e)&&!Number.isNaN(e)&&Number.isFinite(e)}},{key:"isNumber",value:function(e){return void 0!==e&&null!==e&&"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}},{key:"isFloatString",value:function(e){return/^-?\d*\.?\d+$/.test(e)}},{key:"isIntegerString",value:function(e){return/^-?\d+$/.test(e)}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.NumberHelper=o},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isArray",value:function(e){return null!==e&&void 0!==e&&Array.isArray(e)}},{key:"isEmpty",value:function(t){return!e.isArray(t)||0===t.length}},{key:"isTyped",value:function(t,r){return!e.isEmpty(t)&&!t.includes(void 0)&&!t.includes(null)&&t.every(function(e){return o.ObjectHelper.isType(e,r)})}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.ArrayHelper=i},function(e,t){!function(t){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",c="object"==typeof e,f=t.regeneratorRuntime;if(f)c&&(e.exports=f);else{(f=t.regeneratorRuntime=c?e.exports:{}).wrap=g;var l="suspendedStart",p="suspendedYield",h="executing",y="completed",d={},m={};m[a]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(P([])));v&&v!==n&&o.call(v,a)&&(m=v);var w=O.prototype=E.prototype=Object.create(m);x.prototype=w.constructor=O,O.constructor=x,O[s]=x.displayName="GeneratorFunction",f.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},f.awrap=function(e){return{__await:e}},T(j.prototype),j.prototype[u]=function(){return this},f.AsyncIterator=j,f.async=function(e,t,r,n){var o=new j(g(e,t,r,n));return f.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},T(w),w[s]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},f.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=P,H.prototype={constructor:H,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),d}}}function g(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,i=Object.create(o.prototype),a=new H(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=k(e,t,r);if("normal"===s.type){if(n=r.done?y:p,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=y,r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function k(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function E(){}function x(){}function O(){}function T(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function j(e){var t;this._invoke=function(r,n){function i(){return new Promise(function(t,i){!function t(r,n,i,a){var u=k(e[r],e,n);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},a)}a(u.arg)}(r,n,t,i)})}return t=t?t.then(i,i):i()}}function A(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,A(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=k(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function H(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(8),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t,r){e.exports=r(9)},function(e,t,r){"use strict";var n,o=(n=r(10))&&n.__esModule?n:{default:n};function i(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e,t){try{var r=i[e](t),a=r.value}catch(e){return void o(e)}r.done?n(a):Promise.resolve(a).then(u,s)}function u(e){a("next",e)}function s(e){a("throw",e)}u()})}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(7),s=r(6),c=r(2),f=r(1),l=r(5),p=r(0),h=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c.ObjectHelper.isEmpty(t))throw new p.ApiError("The networkClient must be defined");if(f.StringHelper.isEmpty(r))throw new p.ApiError("The apiVersion must not be empty");this._networkClient=t,this._apiVersion=r,this._additionalHeaders=n,this._logger=o||new l.NullLogger}var t,r,n,h,y,d,m,b,v,w,g,k,E,x,O,T,j,A,_,S;return t=e,(r=[{key:"getNodeInfo",value:(S=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getNodeInfo",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return S.apply(this,arguments)})},{key:"getNeighbors",value:(_=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getNeighbors",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return _.apply(this,arguments)})},{key:"addNeighbors",value:(A=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.uris)){e.next=4;break}throw new p.ApiError("The request.uris must not be empty");case 4:return e.abrupt("return",this.sendCommand("addNeighbors",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return A.apply(this,arguments)})},{key:"removeNeighbors",value:(j=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.uris)){e.next=4;break}throw new p.ApiError("The request.uris must not be empty");case 4:return e.abrupt("return",this.sendCommand("removeNeighbors",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return j.apply(this,arguments)})},{key:"getTips",value:(T=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getTips",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return T.apply(this,arguments)})},{key:"findTransactions",value:(O=i(o.default.mark(function e(t){var r,n,i,a;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(r=u.ArrayHelper.isEmpty(t.bundles),n=u.ArrayHelper.isEmpty(t.addresses),i=u.ArrayHelper.isEmpty(t.tags),a=u.ArrayHelper.isEmpty(t.approvees),!(r&&n&&i&&a)){e.next=8;break}throw new p.ApiError("One of the bundle, addresses, tags or approvees must not be empty");case 8:return e.abrupt("return",this.sendCommand("findTransactions",t));case 9:case"end":return e.stop()}},e,this)})),function(e){return O.apply(this,arguments)})},{key:"getTrytes",value:(x=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.hashes)){e.next=4;break}throw new p.ApiError("The request.hashes must not be empty");case 4:return e.abrupt("return",this.sendCommand("getTrytes",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return x.apply(this,arguments)})},{key:"getInclusionStates",value:(E=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.transactions)){e.next=4;break}throw new p.ApiError("The request.transactions must not be empty");case 4:if(!u.ArrayHelper.isEmpty(t.tips)){e.next=6;break}throw new p.ApiError("The request.tips must not be empty");case 6:return e.abrupt("return",this.sendCommand("getInclusionStates",t));case 7:case"end":return e.stop()}},e,this)})),function(e){return E.apply(this,arguments)})},{key:"getBalances",value:(k=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.addresses)){e.next=4;break}throw new p.ApiError("The request.addresses must not be empty");case 4:if(s.NumberHelper.isInteger(t.threshold)){e.next=6;break}throw new p.ApiError("The request.threshold must be a valid number");case 6:return e.abrupt("return",this.sendCommand("getBalances",t));case 7:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)})},{key:"getTransactionsToApprove",value:(g=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(s.NumberHelper.isInteger(t.depth)){e.next=4;break}throw new p.ApiError("The request.depth must be a valid number");case 4:if(c.ObjectHelper.isEmpty(t.reference)||!f.StringHelper.isEmpty(t.reference)){e.next=6;break}throw new p.ApiError("The request.reference must be a non empty string");case 6:if(c.ObjectHelper.isEmpty(t.numWalks)||s.NumberHelper.isInteger(t.numWalks)){e.next=8;break}throw new p.ApiError("The request.numWalks must be a valid number");case 8:return e.abrupt("return",this.sendCommand("getTransactionsToApprove",t));case 9:case"end":return e.stop()}},e,this)})),function(e){return g.apply(this,arguments)})},{key:"attachToTangle",value:(w=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!f.StringHelper.isEmpty(t.trunkTransaction)){e.next=4;break}throw new p.ApiError("The request.trunkTransaction must not be empty");case 4:if(!f.StringHelper.isEmpty(t.branchTransaction)){e.next=6;break}throw new p.ApiError("The request.branchTransaction must not be empty");case 6:if(s.NumberHelper.isInteger(t.minWeightMagnitude)){e.next=8;break}throw new p.ApiError("The request.minWeightMagnitude must be a valid number");case 8:if(!u.ArrayHelper.isEmpty(t.trytes)){e.next=10;break}throw new p.ApiError("The request.trytes must not be empty");case 10:return e.abrupt("return",this.sendCommand("attachToTangle",t));case 11:case"end":return e.stop()}},e,this)})),function(e){return w.apply(this,arguments)})},{key:"interruptAttachingToTangle",value:(v=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("interruptAttachingToTangle",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return v.apply(this,arguments)})},{key:"broadcastTransactions",value:(b=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.trytes)){e.next=4;break}throw new p.ApiError("The request.trytes must not be empty");case 4:return e.abrupt("return",this.sendCommand("broadcastTransactions",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)})},{key:"storeTransactions",value:(m=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.trytes)){e.next=4;break}throw new p.ApiError("The request.trytes must not be empty");case 4:return e.abrupt("return",this.sendCommand("storeTransactions",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return m.apply(this,arguments)})},{key:"getMissingTransactions",value:(d=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getMissingTransactions",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"checkConsistency",value:(y=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.tails)){e.next=4;break}throw new p.ApiError("The request.tails must not be empty");case 4:return e.abrupt("return",this.sendCommand("checkConsistency",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)})},{key:"wereAddressesSpentFrom",value:(h=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.addresses)){e.next=4;break}throw new p.ApiError("The request.addresses must not be empty");case 4:return e.abrupt("return",this.sendCommand("wereAddressesSpentFrom",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"sendCommand",value:(n=i(o.default.mark(function e(t,r){var n=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.info("===> ApiClient::".concat(t),r),Object.defineProperty(r,"command",{value:t,enumerable:!0}),e.abrupt("return",this._networkClient.postJson(r,void 0,this.createHeaders()).then(function(e){return n._logger.info("===> ".concat(t),e),e}).catch(function(e){if(n._logger.error("===> ".concat(t," Error"),e),e.additional&&e.additional.errorResponse)try{var r=JSON.parse(e.additional.errorResponse);r.error?(delete e.additional.errorResponse,e.additional.apiError=r.error):r.exception&&(delete e.additional.errorResponse,e.additional.apiError=r.exception)}catch(e){}throw e}));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"createHeaders",value:function(){var e=this._additionalHeaders||{};return e["X-IOTA-API-Version"]=this._apiVersion,e}}])&&a(t.prototype,r),e}();t.ApiClient=h},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(11)),n(r(0))}])});
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("@iota-pico/api",[],t):"object"==typeof exports?exports["@iota-pico/api"]=t():e.IotaPicoApi=t()}("undefined"!=typeof self?self:this,function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=12)}([function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function i(e){return(i=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e,t){return(a=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var u=r(4),s=function(e){function t(e,r,n){var a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(a=o(this,i(t).call(this,e,r,n))).domain="API",a}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&a(e,t)}(t,u.CoreError),t}();t.ApiError=s},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isString",value:function(e){return null!==e&&void 0!==e&&"[object String]"===Object.prototype.toString.call(e)}},{key:"isEmpty",value:function(t){return!e.isString(t)||0===t.length}},{key:"isAscii",value:function(e){return null!==e&&void 0!==e&&/^[\x00-\xFF]*$/.test(e)}},{key:"encodeNonASCII",value:function(t){return e.isString(t)?t.replace(/[\u007F-\uFFFF]/g,function(e){return"\\u".concat("0000".concat(e.charCodeAt(0).toString(16)).substr(-4))}):void 0}},{key:"decodeNonASCII",value:function(t){return e.isString(t)?t.replace(/\\u([\d\w]{4})/gi,function(e,t){return String.fromCharCode(parseInt(t,16))}):void 0}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.StringHelper=o},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isEmpty",value:function(e){return null===e||void 0===e}},{key:"isObject",value:function(e){return null!==e&&void 0!==e&&"object"===n(e)&&!Array.isArray(e)}},{key:"isType",value:function(t,r){var n=e.getClassName(t);return void 0!==n&&n===e.getClassName(r)}},{key:"getClassName",value:function(e){if(null!==e&&void 0!==e){var t=("function"==typeof e?e.toString():e.constructor.toString()).match(/\w+/g);return t&&t.length>1?t[1]:void 0}}}],null&&o(t.prototype,null),r&&o(t,r),e}();t.ObjectHelper=i},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"stringify",value:function(e,t,r){var o=[];return JSON.stringify(e,function(r,i){if("object"===n(i)&&null!==e&&void 0!==i){if(-1!==o.indexOf(i))return;o.push(i)}return t?t(r,i):i},r)}}],null&&o(t.prototype,null),r&&o(t,r),e}();t.JsonHelper=i},function(e,t,r){"use strict";function n(e){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function i(e,t){return!t||"object"!==n(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function u(e,t){return(u=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var s=r(3),c=r(1),f=function(e){function t(e,r,n){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(o=i(this,a(t).call(this,e))).additional=r||{},o.innerError=n,o.domain="Core",o}var r,f,l;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&u(e,t)}(t,function(e){function t(){var t=Reflect.construct(e,Array.from(arguments));return Object.setPrototypeOf(t,Object.getPrototypeOf(this)),t}return t.prototype=Object.create(e.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e,t}(Error)),r=t,l=[{key:"isError",value:function(e){return void 0!==e&&null!==e&&"object"===n(e)&&"message"in e&&"additional"in e}}],(f=[{key:"format",value:function(){var e=this,t="";c.StringHelper.isEmpty(this.domain)||(t+="".concat(this.domain,": ")),c.StringHelper.isEmpty(this.message)||(t+="".concat(this.message));var r=Object.keys(this.additional);return r.length>0&&(t.length>0&&(t+="\n"),r.forEach(function(r){t+="\t".concat(r,": ").concat(s.JsonHelper.stringify(e.additional[r]),"\n")})),t}}])&&o(r.prototype,f),l&&o(r,l),t}();t.CoreError=f},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,(r=[{key:"banner",value:function(e){}},{key:"log",value:function(e){}},{key:"info",value:function(e){}},{key:"warning",value:function(e){}},{key:"error",value:function(e,t){}}])&&n(t.prototype,r),e}();t.NullLogger=o},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isInteger",value:function(e){return Number.isInteger(e)&&!Number.isNaN(e)&&Number.isFinite(e)}},{key:"isNumber",value:function(e){return void 0!==e&&null!==e&&"number"==typeof e&&!Number.isNaN(e)&&Number.isFinite(e)}},{key:"isFloatString",value:function(e){return/^-?\d*\.?\d+$/.test(e)}},{key:"isIntegerString",value:function(e){return/^-?\d+$/.test(e)}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.NumberHelper=o},function(e,t,r){"use strict";function n(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var o=r(2),i=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e)}var t,r;return t=e,r=[{key:"isArray",value:function(e){return null!==e&&void 0!==e&&Array.isArray(e)}},{key:"isEmpty",value:function(t){return!e.isArray(t)||0===t.length}},{key:"isTyped",value:function(t,r){return!e.isEmpty(t)&&!t.includes(void 0)&&!t.includes(null)&&t.every(function(e){return o.ObjectHelper.isType(e,r)})}}],null&&n(t.prototype,null),r&&n(t,r),e}();t.ArrayHelper=i},function(e,t){!function(t){"use strict";var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",u=i.asyncIterator||"@@asyncIterator",s=i.toStringTag||"@@toStringTag",c="object"==typeof e,f=t.regeneratorRuntime;if(f)c&&(e.exports=f);else{(f=t.regeneratorRuntime=c?e.exports:{}).wrap=g;var l="suspendedStart",p="suspendedYield",h="executing",y="completed",d={},m={};m[a]=function(){return this};var b=Object.getPrototypeOf,v=b&&b(b(P([])));v&&v!==n&&o.call(v,a)&&(m=v);var w=O.prototype=E.prototype=Object.create(m);x.prototype=w.constructor=O,O.constructor=x,O[s]=x.displayName="GeneratorFunction",f.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===x||"GeneratorFunction"===(t.displayName||t.name))},f.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,s in e||(e[s]="GeneratorFunction")),e.prototype=Object.create(w),e},f.awrap=function(e){return{__await:e}},j(T.prototype),T.prototype[u]=function(){return this},f.AsyncIterator=T,f.async=function(e,t,r,n){var o=new T(g(e,t,r,n));return f.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},j(w),w[s]="Generator",w[a]=function(){return this},w.toString=function(){return"[object Generator]"},f.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},f.values=P,H.prototype={constructor:H,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(S),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return u.type="throw",u.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],u=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var s=o.call(a,"catchLoc"),c=o.call(a,"finallyLoc");if(s&&c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(s){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,d):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),S(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;S(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:P(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),d}}}function g(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,i=Object.create(o.prototype),a=new H(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===h)throw new Error("Generator is already running");if(n===y){if("throw"===o)throw i;return C()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var u=A(a,r);if(u){if(u===d)continue;return u}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=y,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=h;var s=k(e,t,r);if("normal"===s.type){if(n=r.done?y:p,s.arg===d)continue;return{value:s.arg,done:r.done}}"throw"===s.type&&(n=y,r.method="throw",r.arg=s.arg)}}}(e,r,a),i}function k(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function E(){}function x(){}function O(){}function j(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function T(e){var t;this._invoke=function(r,n){function i(){return new Promise(function(t,i){!function t(r,n,i,a){var u=k(e[r],e,n);if("throw"!==u.type){var s=u.arg,c=s.value;return c&&"object"==typeof c&&o.call(c,"__await")?Promise.resolve(c.__await).then(function(e){t("next",e,i,a)},function(e){t("throw",e,i,a)}):Promise.resolve(c).then(function(e){s.value=e,i(s)},a)}a(u.arg)}(r,n,t,i)})}return t=t?t.then(i,i):i()}}function A(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,A(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=k(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function S(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function H(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function P(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:C}}function C(){return{value:r,done:!0}}}(function(){return this}()||Function("return this")())},function(e,t,r){var n=function(){return this}()||Function("return this")(),o=n.regeneratorRuntime&&Object.getOwnPropertyNames(n).indexOf("regeneratorRuntime")>=0,i=o&&n.regeneratorRuntime;if(n.regeneratorRuntime=void 0,e.exports=r(8),o)n.regeneratorRuntime=i;else try{delete n.regeneratorRuntime}catch(e){n.regeneratorRuntime=void 0}},function(e,t,r){e.exports=r(9)},function(e,t,r){"use strict";var n,o=(n=r(10))&&n.__esModule?n:{default:n};function i(e){return function(){var t=this,r=arguments;return new Promise(function(n,o){var i=e.apply(t,r);function a(e,t){try{var r=i[e](t),a=r.value}catch(e){return void o(e)}r.done?n(a):Promise.resolve(a).then(u,s)}function u(e){a("next",e)}function s(e){a("throw",e)}u()})}}function a(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}Object.defineProperty(t,"__esModule",{value:!0});var u=r(7),s=r(6),c=r(2),f=r(1),l=r(5),p=r(0),h=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1",n=arguments.length>2?arguments[2]:void 0,o=arguments.length>3?arguments[3]:void 0;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),c.ObjectHelper.isEmpty(t))throw new p.ApiError("The networkClient must be defined");if(f.StringHelper.isEmpty(r))throw new p.ApiError("The apiVersion must not be empty");this._networkClient=t,this._apiVersion=r,this._additionalHeaders=n,this._logger=o||new l.NullLogger}var t,r,n,h,y,d,m,b,v,w,g,k,E,x,O,j,T,A,_,S;return t=e,(r=[{key:"getNodeInfo",value:(S=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getNodeInfo",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return S.apply(this,arguments)})},{key:"getNeighbors",value:(_=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getNeighbors",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return _.apply(this,arguments)})},{key:"addNeighbors",value:(A=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.uris)){e.next=4;break}throw new p.ApiError("The request.uris must not be empty");case 4:return e.abrupt("return",this.sendCommand("addNeighbors",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return A.apply(this,arguments)})},{key:"removeNeighbors",value:(T=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.uris)){e.next=4;break}throw new p.ApiError("The request.uris must not be empty");case 4:return e.abrupt("return",this.sendCommand("removeNeighbors",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return T.apply(this,arguments)})},{key:"getTips",value:(j=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getTips",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return j.apply(this,arguments)})},{key:"findTransactions",value:(O=i(o.default.mark(function e(t){var r,n,i,a;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(r=u.ArrayHelper.isEmpty(t.bundles),n=u.ArrayHelper.isEmpty(t.addresses),i=u.ArrayHelper.isEmpty(t.tags),a=u.ArrayHelper.isEmpty(t.approvees),!(r&&n&&i&&a)){e.next=8;break}throw new p.ApiError("One of the bundle, addresses, tags or approvees must not be empty");case 8:return e.abrupt("return",this.sendCommand("findTransactions",t));case 9:case"end":return e.stop()}},e,this)})),function(e){return O.apply(this,arguments)})},{key:"getTrytes",value:(x=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.hashes)){e.next=4;break}throw new p.ApiError("The request.hashes must not be empty");case 4:return e.abrupt("return",this.sendCommand("getTrytes",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return x.apply(this,arguments)})},{key:"getInclusionStates",value:(E=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.transactions)){e.next=4;break}throw new p.ApiError("The request.transactions must not be empty");case 4:if(!u.ArrayHelper.isEmpty(t.tips)){e.next=6;break}throw new p.ApiError("The request.tips must not be empty");case 6:return e.abrupt("return",this.sendCommand("getInclusionStates",t));case 7:case"end":return e.stop()}},e,this)})),function(e){return E.apply(this,arguments)})},{key:"getBalances",value:(k=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.addresses)){e.next=4;break}throw new p.ApiError("The request.addresses must not be empty");case 4:if(s.NumberHelper.isInteger(t.threshold)){e.next=6;break}throw new p.ApiError("The request.threshold must be a valid number");case 6:return e.abrupt("return",this.sendCommand("getBalances",t));case 7:case"end":return e.stop()}},e,this)})),function(e){return k.apply(this,arguments)})},{key:"getTransactionsToApprove",value:(g=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(s.NumberHelper.isInteger(t.depth)){e.next=4;break}throw new p.ApiError("The request.depth must be a valid number");case 4:if(c.ObjectHelper.isEmpty(t.reference)||!f.StringHelper.isEmpty(t.reference)){e.next=6;break}throw new p.ApiError("The request.reference must be a non empty string");case 6:if(c.ObjectHelper.isEmpty(t.numWalks)||s.NumberHelper.isInteger(t.numWalks)){e.next=8;break}throw new p.ApiError("The request.numWalks must be a valid number");case 8:return e.abrupt("return",this.sendCommand("getTransactionsToApprove",t));case 9:case"end":return e.stop()}},e,this)})),function(e){return g.apply(this,arguments)})},{key:"attachToTangle",value:(w=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!f.StringHelper.isEmpty(t.trunkTransaction)){e.next=4;break}throw new p.ApiError("The request.trunkTransaction must not be empty");case 4:if(!f.StringHelper.isEmpty(t.branchTransaction)){e.next=6;break}throw new p.ApiError("The request.branchTransaction must not be empty");case 6:if(s.NumberHelper.isInteger(t.minWeightMagnitude)){e.next=8;break}throw new p.ApiError("The request.minWeightMagnitude must be a valid number");case 8:if(!u.ArrayHelper.isEmpty(t.trytes)){e.next=10;break}throw new p.ApiError("The request.trytes must not be empty");case 10:return e.abrupt("return",this.sendCommand("attachToTangle",t));case 11:case"end":return e.stop()}},e,this)})),function(e){return w.apply(this,arguments)})},{key:"interruptAttachingToTangle",value:(v=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("interruptAttachingToTangle",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return v.apply(this,arguments)})},{key:"broadcastTransactions",value:(b=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.trytes)){e.next=4;break}throw new p.ApiError("The request.trytes must not be empty");case 4:return e.abrupt("return",this.sendCommand("broadcastTransactions",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return b.apply(this,arguments)})},{key:"storeTransactions",value:(m=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.trytes)){e.next=4;break}throw new p.ApiError("The request.trytes must not be empty");case 4:return e.abrupt("return",this.sendCommand("storeTransactions",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return m.apply(this,arguments)})},{key:"getMissingTransactions",value:(d=i(o.default.mark(function e(){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this.sendCommand("getMissingTransactions",{}));case 1:case"end":return e.stop()}},e,this)})),function(){return d.apply(this,arguments)})},{key:"checkConsistency",value:(y=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.tails)){e.next=4;break}throw new p.ApiError("The request.tails must not be empty");case 4:return e.abrupt("return",this.sendCommand("checkConsistency",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return y.apply(this,arguments)})},{key:"wereAddressesSpentFrom",value:(h=i(o.default.mark(function e(t){return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!c.ObjectHelper.isEmpty(t)){e.next=2;break}throw new p.ApiError("The request must be defined");case 2:if(!u.ArrayHelper.isEmpty(t.addresses)){e.next=4;break}throw new p.ApiError("The request.addresses must not be empty");case 4:return e.abrupt("return",this.sendCommand("wereAddressesSpentFrom",t));case 5:case"end":return e.stop()}},e,this)})),function(e){return h.apply(this,arguments)})},{key:"sendCommand",value:(n=i(o.default.mark(function e(t,r){var n=this;return o.default.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return this._logger.info("===> ApiClient::".concat(t),r),Object.defineProperty(r,"command",{value:t,enumerable:!0}),e.abrupt("return",this._networkClient.postJson(r,void 0,this.createHeaders()).then(function(e){return n._logger.info("===> ".concat(t),e),e}).catch(function(e){if(n._logger.error("===> ".concat(t," Error"),e),e.additional&&e.additional.errorResponse)try{var r=JSON.parse(e.additional.errorResponse);r.error?(delete e.additional.errorResponse,e.additional.apiError=r.error):r.exception&&(delete e.additional.errorResponse,e.additional.apiError=r.exception)}catch(e){}throw e}));case 3:case"end":return e.stop()}},e,this)})),function(e,t){return n.apply(this,arguments)})},{key:"createHeaders",value:function(){var e=this._additionalHeaders||{};return e["X-IOTA-API-Version"]=this._apiVersion,e}}])&&a(t.prototype,r),e}();t.ApiClient=h},function(e,t,r){"use strict";function n(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,"__esModule",{value:!0}),n(r(11)),n(r(0))}])});

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc