HomePhabricator

[alias-server] [p3] Support promise.all to fetch full tx history of address

Description

[alias-server] [p3] Support promise.all to fetch full tx history of address

Summary:
T2922

Depends on D13008

Use chronik's pagination to iterate through and fetch the full tx history of an address

Test Plan:
node index.js
Confirm number of txs matches what's printed at https://explorer.e.cash/address/ecash:qp3c268rd5946l2f5m5es4x25f7ewu4sjvpy52pqa8
Uncomment out lines 57 and 61
node index.js
Confirm the getAllTxHistory returns false if there is an error in one promise

Change aliasHash160 to the hash160 of a wallet with extensive tx history. Confirm function gets it all.

Reviewers: #bitcoin_abc, emack

Reviewed By: #bitcoin_abc, emack

Differential Revision: https://reviews.bitcoinabc.org/D13010

Details

Provenance
bytesofmanAuthored on Jan 19 2023, 15:43
bytesofmanPushed on Feb 28 2023, 22:45
Reviewer
Restricted Project
Differential Revision
D13010: [alias-server] [p3] Support promise.all to fetch full tx history of address
Parents
rABCd06109d30954: [alias-server] [p2] Add chronik function to get txhistory for last 25 txs
Branches
Unknown
Tags
Unknown