@dashevo/dapi-client 0.21.8 → 0.22.0-dev.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +3 -3
  2. package/docs/_sidebar.md +20 -14
  3. package/docs/getting-started/quickstart.md +4 -2
  4. package/docs/usage/application/DAPIClient.md +29 -0
  5. package/docs/usage/application/core/broadcastTransaction.md +15 -0
  6. package/docs/usage/application/core/generateToAddress.md +13 -0
  7. package/docs/usage/application/core/getBestBlockHash.md +10 -0
  8. package/docs/usage/application/core/getBlockByHash.md +11 -0
  9. package/docs/usage/application/core/getBlockByHeight.md +11 -0
  10. package/docs/usage/application/core/getBlockHash.md +11 -0
  11. package/docs/usage/application/core/getMnListDiff.md +12 -0
  12. package/docs/usage/application/core/getStatus.md +29 -0
  13. package/docs/usage/application/core/getTransaction.md +11 -0
  14. package/docs/usage/application/platform/broadcastStateTransition.md +11 -0
  15. package/docs/usage/utils/subscribeToTransactionsWithProofs.md +1 -1
  16. package/lib/BlockHeadersProvider/BlockHeadersProvider.js +121 -0
  17. package/lib/BlockHeadersProvider/BlockHeadersReader.js +229 -0
  18. package/lib/BlockHeadersProvider/createBlockHeadersProviderFromOptions.js +77 -0
  19. package/lib/BlockHeadersProvider/interfaces/BlockHeadersReaderInterface.js +25 -0
  20. package/lib/DAPIClient.js +36 -1
  21. package/lib/methods/core/CoreMethodsFacade.js +4 -0
  22. package/lib/methods/core/subscribeToBlockHeadersWithChainLocksFactory.js +69 -0
  23. package/lib/methods/platform/getIdentitiesByPublicKeyHashes/GetIdentitiesByPublicKeyHashesResponse.js +10 -3
  24. package/lib/methods/platform/getIdentityIdsByPublicKeyHashes/GetIdentityIdsByPublicKeyHashesResponse.js +10 -3
  25. package/lib/methods/platform/response/Proof.js +6 -31
  26. package/lib/test/fixtures/getHeadersFixture.js +215 -0
  27. package/lib/test/fixtures/getProofFixture.js +2 -14
  28. package/package.json +5 -4
  29. package/docs/usage/application/applyStateTransition.md +0 -11
  30. package/docs/usage/payment/getBestBlockHash.md +0 -10
  31. package/docs/usage/payment/getBlockHash.md +0 -11
  32. package/docs/usage/payment/getUTXO.md +0 -15
  33. package/docs/usage/utils/getMnListDiff.md +0 -12
@@ -1,11 +0,0 @@
1
- **Usage**: `client.core.getBlockHash(height)`
2
- **Description**: Returns block hash for the given height
3
-
4
- Parameters:
5
-
6
- | parameters | type | required | Description |
7
- |------------------------|--------------------|----------------| ------------------------------------------------------------------------------------------------ |
8
- | **height** | Number | yes | Any valid height value |
9
-
10
- Returns : Promise<string>
11
-
@@ -1,15 +0,0 @@
1
- **Usage**: `async client.core.getUTXO(address, from, to, fromHeight, toHeight)`
2
- **Description**: Returns UTXO for a given address or multiple addresses (max result 1000)
3
-
4
- Parameters:
5
-
6
- | parameters | type | required | Description |
7
- |------------------------|--------------------|----------------| ------------------------------------------------------------------------------------------------ |
8
- | **address** | String/[String] | yes | address or array of addresses |
9
- | **from** | Number | no | start of range in the ordered list of latest UTXO |
10
- | **to** | Number | no | end of range in the ordered list of latest UTXO |
11
- | **fromHeight** | Number | no | which height to start from (optional, overriding from/to) |
12
- | **toHeight** | Number | no | on which height to end (optional, overriding from/to) |
13
-
14
- Returns : Promise<object> - Object with pagination info and array of unspent outputs
15
-
@@ -1,12 +0,0 @@
1
- **Usage**: `async client.core.getMnListDiff(baseBlockHash, blockHash)`
2
- **Description**: Get deterministic masternodelist diff
3
-
4
- Parameters:
5
-
6
- | parameters | type | required | Description |
7
- |------------------------|--------|----------------| ------------------------------------------------------------------------------------------------ |
8
- | **baseBlockHash** | String | yes | Hash or height of start block |
9
- | **blockHash** | String | yes | Hash or height of end block |
10
-
11
- Returns : Promise<object>
12
-