Page MenuHomePhabricator

[metachronik] Add indexing for addresses by activity
AbandonedPublicDraft

Authored by bytesofman on Aug 5 2025, 18:38.

Details

Reviewers
None
Group Reviewers
Restricted Project
Summary

It would be nice to know how many active addresses we have on the eCash network. This information is available onchain but, since its main value is analysis and not app functionality, it is not indexed elsewhere.

This is the kind of thing metachronik is designed to index.

Add some indexing for unique scripts seen onchain. Ignore OP_RETURN and EMPP scripts which are handled separately.

Goals

  • What is the Monthly Active User stat for the eCash network? How does this change with time?
  • What is growth of eCash addresses like on the network?
  • How has address behavior changed before and after major forks?
Test Plan

npm test

Diff Detail

Repository
rABC Bitcoin ABC
Branch
active-addrs
Lint
Lint Errors
SeverityLocationCodeMessage
Errorapps/metachronik/mocks/blockTxs.ts:4ESLINTheader/header
Errorapps/metachronik/mocks/blockTxs.ts:35379ESLINTeol-last
Errorapps/metachronik/test_indexer_with_mocks.js:1ESLINTheader/header
Errorapps/metachronik/test_mock_indexing.js:1ESLINTheader/header
Errorapps/metachronik/test_mock_indexing.js:7ESLINT@typescript-eslint/no-unused-vars
Errorapps/metachronik/test_mock_indexing.js:36ESLINT@typescript-eslint/no-unused-vars
Unit
No Test Coverage
Build Status
Buildable 34066
Build 67601: Build Diff
Build 67600: arc lint + arc unit

Event Timeline

lint, update dockerfile for ci deploys

use materialized views for script activity

distinctions between spent and active, clean up original schema

more iterating, add charts

still need to do this but fell off the radar. not high priority at the moment, should improve metachronik and add simpler stuff first that is solving a problem and not an info wish.