Repository navigation
feat(zcash): add address page with graceful RPC degradation - #412
Merged
Merged
Conversation
7 of 12 tasks
MatiasOS
force-pushed
the
issue-398-zcash-address
branch
from
November 20, 2026 22:11
d23cc06 to
9ac4f59
Compare
|
🚀 Preview: https://pr-412--openscan.netlify.app |
Each section reports its own availability. When a hosted gateway blocks Zebra's address index, one notice explains that a self-hosted node is needed instead of rendering empty rows; shielded addresses explain why their balances are private.
- On a hosted gateway one getaddressbalance probe stands in for the whole address index, and the answer is remembered: later addresses make no index calls. - A unified address's balance is labelled "Transparent Balance", since its other receivers are shielded. - When the gateway can't decode unified addresses, the page explains it and links to the RPC settings. - The brackets around the transparent receiver note live in the translations (full-width in ja and zh). - History pages through every transaction instead of stopping at 50. - Generic utxo-* class names alias the btc-* rules, so the page no longer depends on Bitcoin class names. - The page aborts on navigation and its loader retry re-runs the lookup. - E2E: a single index probe, the remembered answer, the receivers notice and history paging.
MatiasOS
force-pushed
the
issue-398-zcash-address
branch
from
November 20, 2026 23:44
9ac4f59 to
8de2d81
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds the Zcash address page at
/zec/address/:addressand/tzec/address/:address. With this PR the stack covers every acceptance criterion in #398, including the last one: address and shielded views degrade gracefully when the RPC endpoint rejects a method.What the page shows depends on the address type:
t1/t3,tm/t2): balance, total received, unspent outputs and history, all from Zebra's address index.u1,utest1): its receivers, fromz_listunifiedreceivers. If it has a transparent receiver, that receiver's balance and history are shown too.Graceful degradation. Each section of the page reports whether its data was available.
-32601. In that case the page replaces three empty rows with one notice. It explains that a self-hosted Zebra node is needed and links to RPC settings.Related Issue
Part of #398 (closed by #413). Stacked on #411.
Type of Change
Changes Made
ZcashAddressPageandZcashAddressDisplay.labels.ts.zec|tzec/address/:address.zcashlocale strings andtooltips.zcash.addressin all 5 locales.Method not founderror.addressIndex: true, it serves them the way a self-hosted node would.e2e/tests/shared/mocked/zcash-address.spec.ts. It includes the address search test that was deferred from feat(search): route Zcash addresses and block hashes #411.Screenshots (if applicable)
Checked locally against mocked RPC data in these states:
Checklist
npm run format:fixandnpm run lint:fixnpm run typecheckwith no errorsnpm run test:runAdditional Notes
.tx-valuestyles. The copy button still copies the whole address.AIPromptTemplates.ts, listed in feat: add Zcash to the explorer (adapter, pages, routes) #398's supporting modules) land in feat(zcash): add AI analysis for blocks, transactions and addresses #413, which closes the issue.npm run test:run: 151 passing.Review follow-up
getaddressbalancestands in for the whole address index, and the answer is remembered: later addresses make no index calls.utxo-*class names alias thebtc-*rules, so the page doesn't depend on Bitcoin class names. Bitcoin markup is unchanged.Tests after the follow-up
npm run test:run: 199 passing.