Page MenuHomePhabricator

[alias-server] [p2] Add chronik function to get txhistory for last 25 txs
ClosedPublic

Authored by bytesofman on Jan 19 2023, 14:41.

Details

Summary

T2922

Depends on D13007

Add chronik-client module and a simple function to get the tx history of the alias registration address

Note: This is a test alias registration address, the same one currently being used in the Cashtab implementation stack

Test Plan
npm i
cp config.js.sample config.js
node index.js

Verify the last 25 txs at the address are printed to the console

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

emack requested changes to this revision.Feb 1 2023, 06:23
emack added a subscriber: emack.
emack added inline comments.
web/alias-server/chronik.js
12 ↗(On Diff #37596)

since page_size is is customizable, it's worth adding this as a param in config.sample.js for the sake of future maintainability

This revision now requires changes to proceed.Feb 1 2023, 06:23

nvm, saw page size moving to config in the next stack, all good.

This revision is now accepted and ready to land.Feb 1 2023, 06:25