Public all-wallet balance export (unblocks rustchain-bounties#1113 distribution analysis)

Open
#8,359 3 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 10 days

@tariqtharwat-OPS is already working on this.

Since Sep 20, 2026.

  • #24 by @satoshinakamoto666666 — open
  • #8487 by @tariqtharwat-OPS — open
  • #8684 by @satoshinakamoto666666 — closed without merging

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
api

Research direction

An open linked pull request (#8487) already targets this issue, so check its scope before considering any work. The issue names the proposed GET /api/balances/export endpoint and the required fields, pagination, rate limiting, caching, and explorer documentation, but not the node files or tests to start from. Follow the existing balance and /api/miners implementation and its tests; done means a tested, documented export of all wallet balances with the specified fields.

Written by the indexing model from the issue text.

Description

Gap, confirmed 2026-09-05. rustchain-bounties#1113 asks contributors to compute Gini, top non-founder holders, and a distribution chart from "all wallet balances via the explorer API". No such public endpoint exists. /api/miners returns active miners only, so any distribution statistic built from it is wrong by construction. A contributor (@prins1bap-ui) noticed this and asked before building; others may already have submitted numbers derived from the wrong population.

Proposal. Add a read-only, paginated GET /api/balances/export (or a nightly static JSON at /exports/balances-YYYY-MM-DD.json) on the primary node:

  • fields: wallet, balance_rtc, is_founder (the four founder_* wallets), kind (native/hosted_handle/bcn), last_activity
  • excludes nothing (transparency), rate-limited, cached per epoch
  • documented in the explorer

Until this exists: #1113 should carry a note telling contributors not to build against /api/miners. I will add that note on the bounty.

Reward suggestion for the implementer: 25 RTC (touches the node, needs a test, no consensus impact).

Dominant language
Python
Stars
850
Forks
589
Avg merge
11d 7h
Merged PRs (30d)
29

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from Scottcjn/Rustchain

All issues in Scottcjn/Rustchain

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.