Cluster-aware data providers
Cluster-aware data providers give Explorer pages one shared way to read Solana data for the active network. They resolve the selected RPC endpoint, keep data scoped to that endpoint, and expose account, block, epoch, supply, transaction, and statistics state through React providers and hooks. This page is part of Application runtime and relates to Application shell, User feedback, Account details, Transaction inspection, Block and epoch exploration, and Live network statistics.
Cluster selection
The cluster selection is the shared source of truth for network identity and RPC access. The app reads a cluster from the URL, maps known clusters to configured endpoints, and treats a custom endpoint as a user choice that needs validation and consent before any request uses it. The selection supports Mainnet Beta, Testnet, Devnet, SIMD-296, and Custom (app/…/cluster.ts• L3-17).
The app-layer cluster provider binds the router-agnostic cluster state to Next.js navigation. When it corrects URL parameters, it replaces the current URL and keeps any deep-link hash, so cluster cleanup does not add a false history step or lose the page anchor. It also re-exports the cluster entity's public API, which keeps existing provider imports on one stable app-facing path (app/…/cluster.tsx• L3-7, app/…/cluster.tsx• L11-37, app/…/cluster.tsx• L39-58).
The scroll-anchor provider resolves a preserved hash to a registered page element after path or query changes. It performs the initial scroll only while the user has not moved the page and disables this behavior when the browser does not support WeakRef (app/…/scroll-anchor.tsx• L23-95).
The cluster provider checks reachability with the endpoint's genesis hash. It reports Connecting, Connected, or Failure for that check. Live ledger details such as the epoch schedule and first available block load only when a consumer needs them, so a failure in those details does not change the basic connection state (app/…/cluster-provider.tsx• L46-91, app/…/use-cluster-info.ts• L11-20).
Custom endpoint links remain shareable without making the link itself proof of consent. The app accepts local or approved endpoints at once. Other valid endpoints wait for user approval, while invalid or irrelevant values are removed from the URL (app/…/resolve-cluster.ts• L15-24, app/…/use-cluster-url.ts• L19-30).
The following flow shows how URL state becomes a safe endpoint and then a connection state.
flowchart LR
A[URL cluster and custom endpoint] --> B[Resolve cluster selection]
B --> C{Custom endpoint approved?}
C -->|No| D[Wait for consent]
C -->|Yes| E[Choose RPC endpoint]
B --> E
E --> F[Check genesis hash]
F --> G[Connected or failed]
References: app/…/cluster.tsx• L3-58 app/…/scroll-anchor.tsx• L23-95 app/…/cluster-provider.tsx• L31-75 app/…/use-cluster-url.ts• L43-93
RPC client and cache scope
The RPC client is a shared transport object for one endpoint. getRpc returns the same client for repeated calls to that URL and limits the in-memory client cache to 25 URLs by evicting the oldest entry when the limit is reached. This gives hooks stable client identity while bounding growth from repeated custom endpoints (app/…/get-rpc.ts• L7-29). The transaction-data entity reaches this shared client through the cluster entity's public cross-entity API, so transaction detail reads use the same endpoint-aware transport as the other providers (app/…/index.ts• L1-3, app/…/fetch-transaction-details.ts• L1-21).
The data providers use a second cache pattern for fetched values. Each cache stores entries under a resource key and records Fetching, FetchFailed, or Fetched. The cache also stores its active URL, so updates from an old cluster are ignored and a cluster change clears the old entries. A per-key clear can remove one resource without disturbing its siblings (app/…/cache.tsx• L18-45, app/…/cache.tsx• L81-110).
Cache updates can change the status without replacing the stored value. This lets a refetch show that data is loading while the last fetched value remains available. It also means that a failed refresh can retain an earlier value until the endpoint changes or the entry is cleared (app/…/cache.tsx• L49-62, app/…/accounts-provider.spec.tsx• L248-275).
Cache readers also turn a missing entry into a connection failure when the active cluster is down. This prevents a request that cannot start from remaining in a loading state, while existing data remains available for display and recovery can start when the connection returns (app/…/cache-entry.ts• L7-25, app/…/cache-entry.ts• L37-55).
The shared scope is the endpoint rather than only the friendly cluster name. This matters for custom RPCs and prevents data from one node from appearing after the user changes networks.
References: app/…/get-rpc.ts• L11-29 app/…/index.ts• L1-3 app/…/fetch-transaction-details.ts• L14-29 app/…/cache.tsx• L18-45 app/…/cache.tsx• L81-110 app/…/cache-entry.ts• L14-55 app/…/cache-entry.spec.tsx• L13-73 app/…/index.tsx• L194-235
Wallet integration
The wallet provider gives signing features the wallet client for the active Solana chain. It maps Mainnet Beta, Devnet, and Testnet to their Wallet Standard chain identifiers. Custom and SIMD-296 use solana:localnet because their actual network cannot be known from the endpoint alone. This identifier also tells wallets which network to use for transaction previews, so an arbitrary endpoint must not claim to be mainnet (app/…/cluster-chain.ts• L3-26).
Wallet clients are cached by chain and keep separate stored selections. A cluster change therefore selects the matching wallet context without rebuilding discovery for every render or sharing a mainnet connection with another network (app/…/wallet-provider.tsx• L16-41).
The wallet hook separates connection from signing. A wallet can connect in watch-only mode, but the app offers execution only when it has both a usable public key and a signer. Invalid wallet addresses become an unavailable public key instead of breaking the page, and a stable address keeps the same public-key value across renders. Signing adapts legacy and versioned web3.js transactions through the common wire format and requires a wallet that returns signed transactions to Explorer (app/…/use-wallet.ts• L13-67, app/…/sign-web3js-transaction.ts• L25-71, app/…/use-wallet.spec.ts• L44-109).
Interactive IDL forms use the wallet as a prefill dependency. They fill suitable signer, authority, or writable non-PDA accounts, but preserve fields that the user edited. Related prefill dependencies fill known program addresses and generated PDA accounts only when the form value is empty or still matches an earlier automatic value (app/…/wallet-prefill-provider.ts• L11-59, app/…/known-accounts-prefill-provider.ts• L24-69, app/…/use-pda-prefill.ts• L11-78).
References: app/…/wallet-provider.tsx• L24-46 app/…/cluster-chain.ts• L5-26 app/…/cluster-chain.spec.ts• L7-19 app/…/use-wallet.ts• L17-67 app/…/use-wallet.spec.ts• L44-119 app/…/wallet-prefill-provider.ts• L14-59 app/…/known-accounts-prefill-provider.ts• L32-69 app/…/use-pda-prefill.ts• L19-78 app/…/wallet-prefill-provider.spec.ts• L28-153 app/…/known-accounts-prefill-provider.test.ts• L11-113 app/…/use-pda-prefill.spec.ts• L17-228
Multisig data
The multisig provider adds optional Squads context to program views. It can identify a program authority through a mainnet-only reverse lookup, then load the matching Squads v3 or v4 multisig record so pages can show its threshold and members. Other clusters do not make this external lookup (app/…/squadsMultisig.tsx• L8-45, app/…/squadsMultisig.tsx• L47-77).
The lookup is best-effort. A missing authority, a non-mainnet cluster, a timeout, or an external error produces no multisig result rather than blocking the surrounding program view (app/…/squadsMultisig.tsx• L21-43).
References: app/…/squadsMultisig.tsx• L8-45 app/…/squadsMultisig.tsx• L47-77
Account data
The accounts provider supplies on-demand account data for the active endpoint. It batches requests that arrive close together, limits each RPC batch to 100 accounts, and supports parsed, raw, or data-free reads. Parsed results cover common Solana account families such as token, stake, vote, nonce, sysvar, config, upgradeable program, and address lookup table accounts (app/…/index.tsx• L148-179, app/…/index.tsx• L252-345).
The provider keeps raw data when a result cannot use a known parsed layout. It also enriches selected account types when the page needs more context, such as stake activation or program data. NFT metadata is an opt-in enrichment for mint accounts, and unrelated account results can settle while that metadata is still pending (app/…/index.tsx• L346-379, app/…/index.tsx• L394-501, app/…/accounts-provider.spec.tsx• L299-375). Consumers read one account, several accounts, token-specific views, or lookup tables from the same endpoint-scoped cache.
Account-related child providers build on this base. Token holdings query both the original token program and Token-2022, merge all returned holdings without an artificial small limit, normalize nested RPC integers to JSON-safe numbers, and leave display metadata to consumers (app/…/tokens.tsx• L57-101, app/…/bigint-to-number.ts• L1-27). Rewards load inflation rewards in pages by epoch, convert chain integers to page-safe numbers, merge new pages with existing results, and keep a single failed epoch from failing the whole page (app/…/rewards.tsx• L39-55, app/…/rewards.tsx• L78-162, app/…/rewards.spec.tsx• L86-113).
The provider owns the lifetime of its short debounce window. It cancels pending account batches when it unmounts or when the endpoint changes, but it keeps a batch when only the cluster label changes and the endpoint stays the same. A refetch keeps the last account value while the new request is in progress. Preset endpoint failures are logged for diagnosis, while failures from custom endpoints stay quiet because the app does not own those services (app/…/index.tsx• L194-235, app/…/index.tsx• L356-381, app/…/accounts-provider.spec.tsx• L103-275).
Raw account data is also available as a separate account entity capability. Its cache key includes both the active endpoint and account address, so raw bytes remain tied to the selected network. Consumers can request the bytes on demand or use an eager form for views that need them as soon as they mount (app/…/use-raw-account-data.ts• L10-30).
When the cluster connection fails, account hooks expose a failed cache state for uncached accounts instead of waiting for a fetch that cannot start. Cached account data remains available until a new endpoint is selected (app/…/cache-entry.ts• L37-55, app/…/index.tsx• L504-529).
References: app/…/index.tsx• L121-235 app/…/index.tsx• L252-379 app/…/tokens.tsx• L54-119 app/…/rewards.tsx• L39-162 app/…/bigint-to-number.ts• L1-27 app/…/use-raw-account-data.ts• L10-37 app/…/cache-entry.ts• L27-55 app/…/accounts-provider.spec.tsx• L65-275 app/…/accounts-provider.spec.tsx• L299-412 app/…/tokens.spec.tsx• L99-217 app/…/rewards.spec.tsx• L74-113
Block and epoch data
The block provider turns a slot into block content and nearby leader context. It also represents a slot with no block as a completed lookup, which lets pages distinguish an empty result from a request that is still in progress. It fetches the next block slot when available, but a leader lookup failure does not discard the block itself (app/…/block.tsx• L66-123, app/…/block.test.tsx• L36-95).
The epoch provider turns an epoch number into its first and last confirmed blocks and their times. It uses the cluster's epoch schedule and allows the current epoch to have no final block yet. It preserves missing block times and handles the start of the slot range, including slot zero. Both providers clear their values when the endpoint changes (app/…/block.tsx• L39-51, app/…/epoch.tsx• L24-51, app/…/epoch.tsx• L64-128, app/…/epoch.test.tsx• L31-90).
Block data also gives block overviews a stable summary of transaction message versions. The summary reports the count and share for each known version, including versions that are absent from the block, so the overview keeps the same shape for empty and mixed blocks (app/…/index.ts• L1-4, app/…/transaction-versions.ts• L25-47).
A failed cluster connection is visible through the same cache read path used by block and epoch consumers. This gives pages a terminal error state for lookups that were never sent (app/…/cache-entry.ts• L37-55, app/…/block.tsx• L56-64, app/…/epoch.tsx• L56-64).
References: app/…/block.tsx• L39-137 app/…/block.test.tsx• L36-95 app/…/epoch.tsx• L39-145 app/…/epoch.test.tsx• L31-90 app/…/fetch-cluster-info.ts• L5-18 app/…/transaction-versions.ts• L25-47 app/…/transaction-versions.spec.ts• L10-31 app/…/cache-entry.ts• L37-55
Supply data
The supply and staking data flow gives network views a separate view of total supply and stake distribution. It remains independent from live performance statistics, so a statistics error does not remove supply information from the home experience (app/page.tsx• L66-81, app/page.tsx• L170-185).
References: app/page.tsx• L66-81 app/page.tsx• L170-185
Transaction data
The transaction providers separate three related questions: whether a signature has a status, what raw transaction bytes exist, and what parsed transaction details exist. Each question has its own endpoint-scoped cache, and the parsed and raw detail providers sit inside the status provider for the transaction routes (app/…/index.tsx• L21-60).
Status data includes the slot, result, confirmation count or maximum confirmation, and confirmation level. The status lookup searches transaction history and treats a null status entry as a completed lookup with no transaction data. It does not fetch block time as part of the status check. Raw and parsed details use shared data loaders so transaction pages can request the representation they need without coupling status checks to detail loading (app/…/index.tsx• L63-127, app/…/raw.tsx• L49-85, app/…/parsed.tsx• L39-65, app/…/index.test.tsx• L35-117).
Parsed transaction details use the parsed RPC representation and convert a missing RPC result into an explicit fetched absence. The detail hook accepts an absent signature and returns no cache entry in that case, which lets callers invoke the hook without changing hook order while a transaction identifier is still unavailable (app/…/parsed.tsx• L14-22, app/…/parsed.tsx• L83-105, app/…/fetch-transaction-details.ts• L18-37).
The parsed detail provider clears its entries when the endpoint changes. A failed request becomes FetchFailed, while the shared cache can retain an earlier value during a refresh. Errors from custom endpoints are not logged by the app. Raw detail loading follows the same endpoint reset and failure rule. Its loader forwards the optional commitment to the RPC request and reports a failure without adding a new data value, so a cached value can remain available during a failed refresh (app/…/parsed.tsx• L24-65, app/…/raw.tsx• L24-89, app/…/raw.test.tsx• L34-101).
The status provider converts RPC numeric values to ordinary numbers, removes null confirmation levels before it exposes them to consumers, and represents rooted transactions with maximum confirmations. A malformed response or failed request becomes FetchFailed (app/…/index.tsx• L77-115, app/…/index.test.tsx• L59-117).
The transaction route installs these providers with the accounts provider. This relationship lets transaction views reuse account parsing and cache results while they inspect instructions and balances (app/…/layout.tsx• L1-13). Transaction detail loading uses the cluster entity's public transaction-data boundary to obtain the RPC client. This keeps the transaction-data entity dependent on the cluster transport without exposing the cluster entity's internal modules (app/…/index.ts• L1-3, app/…/fetch-transaction-details.ts• L14-29). Client-only instruction-name hooks stay in a separate client entry point, while the main transaction-data entry point remains usable by server callers such as receipt generation (app/…/client.ts• L1-5, app/…/index.ts• L1-12).
Transaction status reads use the connection-aware cache reader. A missing status becomes a connection failure only when the cluster is down, while a known status remains readable after the endpoint becomes unavailable (app/…/index.tsx• L134-144, app/…/cache-entry.ts• L37-55).
References: app/…/index.tsx• L34-159 app/…/raw.tsx• L17-104 app/…/parsed.tsx• L14-105 app/…/index.test.tsx• L35-117 app/…/raw.test.tsx• L34-101 app/…/index.ts• L1-3 app/…/fetch-transaction-details.ts• L14-29 app/…/client.ts• L1-5 app/…/index.ts• L1-12 app/…/layout.tsx• L6-13 app/…/cache-entry.ts• L14-55
Cluster statistics
The statistics provider supplies live dashboard and performance data for pages that opt in. It reads epoch information, recent performance samples, transaction count, and recent block time from the active RPC. Polling starts only while the view is active, the browser tab is visible, and the selected endpoint is ready for use; this prevents a custom URL that is waiting for consent from using a fallback endpoint (app/…/solanaClusterStats.tsx• L79-91, app/…/solanaClusterStats.spec.tsx• L33-76).
Dashboard data describes slot and epoch progress. Performance data describes transaction rate, slot time, history, and total transaction count. The dashboard derives hour and latest-minute slot times from recent samples, omits the latest-minute value when the newest sample has no slots, and can still become ready from a valid hour measure. It estimates current block time only when the known slot data supports a forward estimate (app/…/solanaDashboardInfo.tsx• L72-127, app/…/solanaDashboardInfo.test.ts• L78-188, app/…/solanaDashboardInfo.test.ts• L192-296). The provider marks each view as loading, ready, or error, resets both views after a cluster change, and exposes retry and timeout controls (app/…/solanaClusterStats.tsx• L26-75, app/…/solanaClusterStats.tsx• L237-303).
The home page activates polling only while its live statistics card is mounted. Supply and staking data use a separate flow, so a statistics failure does not hide the supply view (app/page.tsx• L66-81, app/page.tsx• L170-185).
References: app/…/index.tsx• L3-8 app/…/solanaClusterStats.tsx• L79-237 app/…/solanaDashboardInfo.tsx• L72-142 app/…/solanaPerformanceInfo.tsx• L54-119 app/…/solanaClusterStats.spec.tsx• L20-76 app/…/solanaDashboardInfo.test.ts• L90-295
Change checklist
When these files or sections are changed, remember to consider these:
- Keep the URL cluster, selected endpoint, connection check, and all provider cache keys aligned. A mismatch can show data from one network under another network name.
- Keep the app-layer router adapter, the cluster entity's public exports, and scroll-anchor behavior aligned. Navigation changes must preserve deep-link hashes, register targets, and must not turn URL correction into a new history step.
- Keep custom endpoint consent separate from endpoint parsing. A valid URL is not the same as an approved URL.
- Keep wallet chain mapping aligned with the network shown to the wallet. Custom and SIMD-296 must not claim mainnet.
- When adding an endpoint-scoped provider, clear or reject old entries when its URL changes. Do not rely only on component remounts.
- When changing connection-aware cache reads, preserve the distinction between an uncached value during a failed connection and a cached value from before the failure.
- When changing cache reconciliation, preserve old values during a refetch only when the provider's consumer can safely use that value. Clear the entry when the endpoint changes.
- When changing account parsing, preserve a raw-data path for account layouts that the parser does not know.
- When changing account fetcher lifetimes, cancel pending debounce work on unmount or endpoint change, but preserve it when only the cluster label changes for the same endpoint.
- When changing raw account reads, keep the endpoint and account address in the cache key. Preserve the separate eager path for views that need data on mount.
- When changing token or reward shaping, keep both token programs covered, keep all holdings available, keep nested token payloads JSON-safe, and keep chain integers safe for page and JSON consumers. Preserve partial reward-page results.
- When changing multisig lookup behavior, keep the mainnet-only rule and allow external lookup failures to leave the surrounding program view usable.
- When changing transaction loading, keep status, raw detail, and parsed detail caches separate because they have different availability and use patterns.
- When changing parsed transaction detail hooks, preserve the ability to read no entry when a signature is unavailable. Callers must be able to keep hook order stable while transaction identity is unresolved.
- When changing transaction detail loading, keep the parsed response's explicit distinction between fetched absence and not-yet-requested data.
- When changing transaction status shaping, preserve the distinction between a fetched signature with no status, a valid status with maximum confirmations, and a failed request. Keep RPC numbers safe for downstream JSON use and do not add unrelated time reads.
- When changing raw transaction failure handling, keep the failure status and custom-endpoint logging rule aligned with cache reconciliation. Failure updates must not replace a prior detail value with new data. Do not expose an old value as current data after an endpoint change.
- When changing raw transaction request options, preserve the commitment passed by the caller when building the RPC request.
- When changing the transaction-data boundary, keep the exported RPC access aligned with transaction detail loading and the cluster entity's public dependency boundary.
- When changing transaction-data exports, keep client-only hooks separate from the universal entry point used by server callers.
- When changing block overview summaries, preserve the stable set of transaction-version entries and the zero-share behavior for empty blocks.
- When changing block enrichment, keep an absent child slot distinct from a leader lookup failure. A missing child block must not hide the requested block.
- When changing epoch boundary handling, preserve null block times and valid slot-zero lookups.
- When changing statistics polling, preserve connectable-endpoint gating, tab-visibility gating, and stale-result protection so consent-pending, hidden, or old views do not overwrite current data.
- When changing dashboard sample handling, keep the latest-minute value tied to the newest sample and allow a valid hour measure to establish readiness when that newest sample has no slots.
- When changing wallet or IDL prefill behavior, preserve watch-only state, invalid-address safety, and user edits. Automatic wallet, known-account, and PDA values must not overwrite manual form values.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| An unapproved custom endpoint is used before consent | The browser sends RPC requests to a node the user has not accepted | Keep the endpoint in a pending state and disable the connection check until consent is decided |
| A response from an old endpoint updates a provider | Data from the previous cluster appears in the current view | Key cache updates by URL and clear or reject old entries on endpoint change |
| A disconnected cluster leaves an uncached entry as loading | A page waits forever for a fetch that cannot start | Convert a cache miss to FetchFailed while the connection is down |
| A refetch overwrites a useful value with an empty update | A page loses data while a new request is pending or after it fails | Let cache reconciliation retain prior data during refresh, then clear it when the endpoint changes |
| A transaction-data consumer bypasses the cluster public boundary | A layer depends on cluster internals or loses the shared RPC client contract | Export the needed transport through app/…/index.ts |
| A router correction uses history navigation or drops the fragment | Back returns to the invalid URL or a deep link loses its anchor | Use replacement navigation and append the live URL hash |
| A registered anchor is missing or the user scrolls before it appears | A late render cannot place the view at the requested anchor or steals control from the user | Register targets through the scroll-anchor provider and stop automatic scrolling after user movement |
| A wallet reports an invalid address | Wallet state parsing breaks the page or exposes an unusable signing action | Treat the public key as unavailable and keep signing disabled |
| A wallet is connected without a signer | The UI offers an action that fails only when it asks for a signature | Gate signing actions on both a usable public key and a signer |
| A custom or SIMD-296 cluster is presented as mainnet to a wallet | The wallet previews or validates a transaction against the wrong network | Map these clusters to solana:localnet |
| Automatic IDL prefill overwrites a user edit | A form silently changes the account the user chose | Track dirty fields and prior generated values before applying wallet or PDA values |
| A mainnet-only multisig lookup runs on another cluster or fails | Program context is wrong or an optional feature blocks the page | Return no multisig result outside mainnet and treat lookup errors as optional data failures |
| A parsed account layout is unknown | Account inspection loses data needed by another feature | Retain raw account bytes when parsed data is unavailable |
| Raw account data is cached without its endpoint | Bytes from one network can appear for the same address on another network | Include the active endpoint and account address in the raw-data cache key |
| A pending account batch survives provider teardown or endpoint change | A stale batch can update a closed view or send a request to the wrong endpoint | Cancel the fetcher timers during cleanup and rebuild them for a new endpoint |
| An account batch fails on a custom endpoint | The app reports an error for a service it does not control | Keep custom-endpoint failures out of the app error log |
| Token account responses contain nested bigints | JSON serialization or token schema validation fails for otherwise valid holdings | Convert parsed RPC bigints to numbers before exposing token data |
| A slot has no block | The page treats an empty ledger slot as a failed or still-loading lookup | Store the empty result as Fetched with no block data |
| A block's leader lookup fails | A valid block disappears because optional context was unavailable | Keep the block result and leave leader fields undefined |
| An epoch boundary has no recorded block time | The page replaces a valid boundary with a false time | Preserve the null timestamp and keep the boundary result usable |
| Statistics polling starts while a custom endpoint is still awaiting consent | The dashboard sends requests to the fallback endpoint instead of the endpoint the user selected | Start polling only when the cluster exposes a connectable endpoint |
| The newest performance sample has no slots | The dashboard labels an older measurement as the latest-minute rate or never reaches ready state | Omit the latest-minute value and use a valid hour measure when one exists |
| A transaction status response has no matching entry or has the wrong shape | The page shows a false pending state or stale status data | Treat a null matching entry as fetched absence and mark malformed or failed requests as FetchFailed |
| A parsed transaction detail request has no signature | A caller may issue a request with no transaction identity or violate hook order while waiting for one | Allow the detail hook to receive undefined and return no cache entry until a signature exists |
| A parsed transaction detail response is null | The page confuses a completed lookup with a request that never ran | Keep null as fetched absence and reserve undefined for an unrequested entry |
| A raw transaction request fails after an earlier value was cached | The page can show a failed refresh while still displaying the last known detail | Keep the failure status explicit, do not attach a replacement data value, and clear the value when the endpoint changes |
| A client-only transaction hook is exported from the universal entry point | A server route can fail when its module graph reaches browser-only code | Keep browser hooks in the dedicated client entry point |
| The statistics view stays active while hidden | The app continues polling without a visible consumer | Start intervals only when active and the tab is visible |
Key files
| File | Why to read it |
|---|---|
| app/…/cluster.tsx | Shows the app-layer router adapter, URL correction behavior, and stable re-export path for cluster state. |
| app/…/scroll-anchor.tsx | Shows how preserved URL fragments resolve to page anchors without overriding user scrolling. |
| app/…/cluster-provider.tsx | Shows endpoint reachability and cluster status. |
| app/…/use-cluster-url.ts | Shows custom endpoint consent and the final cluster selection. |
| app/…/get-rpc.ts | Shows shared RPC client identity and cache bounds. |
| app/…/index.ts | Shows the public cluster boundary used by transaction-data reads. |
| app/…/fetch-transaction-details.ts | Shows how parsed transaction details use the cluster-scoped RPC client and represent a missing transaction. |
| app/…/index.ts and app/…/client.ts | Show the split between server-safe transaction-data exports and client-only naming hooks. |
| app/…/cache.tsx | Shows the common endpoint-scoped cache behavior and value reconciliation. |
| app/…/cache-entry.ts | Shows how cache reads represent a failed cluster connection. |
| app/…/index.tsx | Shows account batching, parsing, enrichment, and account cache access. |
| app/…/tokens.tsx | Shows token holdings across both token programs, uncapped result handling, and JSON-safe token values. |
| app/…/rewards.tsx | Shows paged reward history. |
| app/…/bigint-to-number.ts | Shows the shared conversion that makes parsed RPC payloads safe for schemas and JSON consumers. |
| app/…/accounts-provider.spec.tsx | Shows the guarantees for account batch cleanup, same-endpoint cluster changes, refetch values, and optional NFT enrichment. |
| app/…/tokens.spec.tsx and app/…/rewards.spec.tsx | Show the guarantees for token merging, uncapped holdings, nested numeric shaping, and partial reward results. |
| app/…/use-raw-account-data.ts | Shows endpoint-scoped raw account reads and their eager and on-demand forms. |
| app/…/squadsMultisig.tsx | Shows the optional mainnet-only Squads lookup and v3/v4 multisig data. |
| app/…/block.tsx and app/…/block.test.tsx | Show slot lookup, optional leader context, empty-slot handling, and failure behavior. |
| app/…/epoch.tsx and app/…/epoch.test.tsx | Show epoch boundary lookup lifecycles, timestamps, and slot-zero handling. |
| app/…/transaction-versions.ts | Shows the stable block transaction-version summary used by block overviews. |
| app/…/index.tsx | Shows transaction status and detail provider composition. |
| app/…/raw.tsx | Shows raw transaction detail loading, commitment forwarding, endpoint reset, and failure state. |
| app/…/parsed.tsx | Shows parsed transaction detail loading and the optional-signature cache read. |
| app/…/index.test.tsx and app/…/raw.test.tsx | Show the status and raw-detail contracts for missing data, numeric conversion, commitment forwarding, and failed requests. |
| app/…/solanaClusterStats.tsx | Shows live cluster polling, visibility control, and retry state. |
| app/…/solanaDashboardInfo.tsx | Shows how dashboard readiness, slot rates, and block-time estimates are derived. |
| app/…/solanaClusterStats.spec.tsx and app/…/solanaDashboardInfo.test.ts | Show endpoint-consent gating and guarantees for sample gaps, stalled clusters, and dashboard state transitions. |
| app/…/wallet-provider.tsx, app/…/cluster-chain.ts, and app/…/use-wallet.ts | Show cluster-aware wallet selection, chain identity, and signing readiness. |
| app/…/wallet-prefill-provider.ts and app/…/use-pda-prefill.ts | Show how wallet and generated PDA values assist IDL forms without replacing user edits. |