-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #109 from Patrik-Stas/feature/filter-seqno
Feature/filter seqno
- Loading branch information
Showing
19 changed files
with
209 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
const { getTxsV2 } = require('../src') | ||
|
||
const API_URL = process.env.API_URL || 'https://indyscan.io' | ||
const NETWORK_ID = process.env.NETWORK_ID || 'SOVRIN_STAGINGNET' | ||
|
||
async function fetch_1000txs_in_39K_40K_seqNo_range () { // eslint-disable-line | ||
return getTxsV2( | ||
API_URL, | ||
NETWORK_ID, | ||
'domain', | ||
0, | ||
1000, | ||
[], | ||
39000, | ||
40000, | ||
'expansion', | ||
undefined) | ||
} | ||
|
||
fetch_1000txs_in_39K_40K_seqNo_range() // eslint-disable-line | ||
.then(txs => { | ||
const seqNos = txs.map(tx => tx.imeta.seqNo) | ||
console.log(`Returned ${seqNos.length} txs.`) | ||
console.log(`Fetched transaction sequence numbers: ${JSON.stringify(seqNos)}`) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
API_URL='https://indyscan.io' | ||
NETWORK_ID='SOVRIN_STAGINGNET' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
API_URL='http://localhost:3709' | ||
API_URL='http://localhost:3708' | ||
NETWORK_ID='SOVRIN_STAGINGNET' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.