Skip to content

fix: fetch Polkadot and Kusama balances from Asset Hub - #290

Merged
galvanizze merged 2 commits into
masterfrom
3269-polkadot-asset-hub
Nov 18, 2026
Merged

galvanizze merged 2 commits into
masterfrom
3269-polkadot-asset-hub

Conversation

@galvanizze

Copy link
Copy Markdown
Member

Balances and staking moved from the relay chains to Asset Hub (Kusama Oct 2025, Polkadot Nov 2025), so the relay chain Subscan returned zero for every account. Query the Asset Hub Subscan instead.

  • Asset Hub Subscan answers "Record Not Found" for valid accounts that never held anything there; return no balances for a valid SS58 address and keep raising InvalidAddressException otherwise.
  • Cap staked at reserved: the staking ledger can exceed the held amount, which double counted the difference.

Balances and staking moved from the relay chains to Asset Hub (Kusama
Oct 2025, Polkadot Nov 2025), so the relay chain Subscan returned zero
for every account. Query the Asset Hub Subscan instead.

- Asset Hub Subscan answers "Record Not Found" for valid accounts that
  never held anything there; return no balances for a valid SS58
  address and keep raising InvalidAddressException otherwise.
- Cap staked at reserved: the staking ledger can exceed the held amount,
  which double counted the difference.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@galvanizze
galvanizze requested a review from ladovina November 16, 2026 16:09
ubuntu-latest is moving to Ubuntu 26.04, which has no prebuilt Python
3.12.11, so setup-python fails before any test runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@galvanizze
galvanizze merged commit 325238e into master Nov 18, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants