Introducing a new way to review your PRs.

Read the announcement

solana-foundation / explorer

Explorer for Solana clusters

View on GitHub

23 documents · Updated Nov 23, 2026

docs / discovery-and-identity

Discovery and on-chain identity

Discovery and on-chain identity help an engineer move from an address, name, or program ID to the right Explorer view and useful context. The system combines cluster-aware route discovery with domain ownership, program names, IDLs, build status, and security records while keeping the on-chain address as the stable identity.

Discovery model

Discovery is the front door for Explorer data. It accepts human text and chain identifiers, finds matching resources, and returns a route that preserves the network context needed to inspect the result.

Search and route resolution

The search system turns one query into grouped results from known local records, direct address or signature matches, and remote data sources. It starts remote searches at the same time as local searches, runs fallback searches only when local search returns no results, and ignores a failed provider so one unavailable source does not remove other useful results. Server-only discovery now exposes Jupiter token discovery and token resolution as the remote search boundary. Completed non-empty searches also emit analytics with the query length and total result count. See Search and route resolution for the full query and navigation flow. References: app/…/use-search.ts• L38-79, app/…/registry.ts• L19-62, app/…/server.ts• L1-5, app/…/use-search.test.ts• L88-200, app/…/registry.test.ts• L5-37, app/…/use-search-analytics.test.ts• L27-114

Search results point to account, transaction, block, epoch, token, domain, program, loader, sysvar, feature gate, and other supported Explorer views. The result panel groups matches into All, Tokens, Programs, Feature Gates, and Other filters. The Programs filter combines program, verified-program, and loader groups. Other includes domain owners and name-service accounts.

References: app/…/types.ts• L3-32 app/…/filter-tabs.ts• L3-47 app/…/explorer-url-search-provider.ts• L4-37 app/…/feature-gate-search-provider.ts• L7-49 app/…/use-search-navigation.ts• L10-45 app/…/BaseSearch.tsx• L176-231 app/…/SearchFilters.tsx• L12-41 app/…/feature-gate-search-provider.test.ts• L44-109

The result panel shows only filters with matches. If one non-All filter has results, it becomes the only visible filter. Otherwise, the panel keeps All and the matching filters. Within All, token and domain-owner results take priority while feature gates move to the end. This keeps the most direct identity result easy to select without changing the underlying search providers.

References: app/…/filter-tabs.ts• L57-99

Discovery inputs

The search bar gives users one place to enter names, public keys, signatures, token terms, domains, feature-gate titles or SIMD numbers, and Explorer URLs. It waits briefly after input changes, opens the result panel only for non-empty input, shows grouped results, supports filter and keyboard controls, and clears the query after selection.

References: app/…/SearchBar.tsx• L15-57 app/…/BaseSearch.tsx• L46-92 app/…/BaseSearch.tsx• L109-231 app/…/SearchGroupHeading.tsx• L1-6 app/…/SearchBar.test.tsx• L53-163

Pasted URLs from supported external Solana explorers become local search results. The parser recognizes supported account, token, transaction, block, and epoch paths, extracts the identifier, and carries the source URL's cluster into the result. Unsupported hosts, protocols, paths, and missing identifiers remain ordinary unmatched queries.

References: app/…/parse-explorer-url.ts• L22-124 app/…/explorer-url-search-provider.ts• L15-37 app/…/parse-explorer-url.test.ts• L6-204 app/…/explorer-url-search-provider.test.ts• L9-60

Each result can show a readable label, a secondary value, an icon, and a verification marker. If an icon cannot load, the interface falls back to the first letter of the result label. Source-verified build results also show a trust warning so a verification mark is not read as a general safety claim. Selecting a result records its type and verification context when available.

References: app/…/SearchResultItem.tsx• L7-35 app/…/SearchResultItem.tsx• L38-57 app/…/SearchBar.test.tsx• L54-88

The system treats valid public keys and transaction signatures as direct navigation requests when no more specific known identity claims the query. This fallback keeps any valid chain object discoverable even when it has no friendly label or external metadata.

References: app/…/account-search-provider.ts• L9-49 app/…/transaction-search-provider.ts• L9-48

Cluster context

Cluster context limits discovery and identity claims to the network where they make sense. Known program labels are filtered by deployment, domain search is limited to mainnet, and token search passes the selected cluster or genesis identity to its service. Server-side token resolution also uses the selected cluster when it enriches discovered token addresses with asset metadata. Numeric epoch searches use the current epoch as a bound, while other queries do not fetch epoch data.

References: app/…/program-search-provider.ts• L21-47 app/…/domain-search-provider.ts• L17-19 app/…/fetch-token-results.ts• L25-39 app/…/resolve-search-tokens.ts• L29-60 app/…/use-search.ts• L10-23 app/…/use-search.test.ts• L203-253

The selected cluster remains part of navigation rather than only a search setting. When a result has a specific cluster, navigation uses that cluster. Otherwise, it carries forward the current URL context. This also lets a pasted external-explorer URL open on the source network instead of the currently selected one. Existing target query values remain intact when cluster context is added.

References: app/…/types.ts• L3-13 app/…/use-search-navigation.ts• L16-41 app/…/use-search-navigation.test.ts• L24-85

The following flow shows how a user query becomes a cluster-safe Explorer destination.

flowchart LR
    A[User query] --> B[Classify input]
    B --> C[Local identity records]
    B --> D[Direct address or signature match]
    B --> E[Remote discovery]
    C --> F[Grouped search results]
    D --> F
    E --> F
    F --> G[Resolve route and cluster]
    G --> H[Explorer view]

Domain identity

Domain identity adds human-readable names to wallet and account discovery. It resolves names to on-chain name-service records and resolves owned records back to names so a domain and its owner can lead to the same account view. See Domains, programs, and security identity for the domain and metadata details.

Domain resolution

The domain resolver accepts a valid domain and returns the name-service account plus its owner when the record is present and valid. It supports .sol names through the SPL Name Service and other supported names through ANS, with lower-case normalization before lookup.

References: app/…/resolve-domain.ts• L9-52 app/…/domain-struct.ts• L6-21

Domain search turns a recognized mainnet domain into an owner account result through the domain-info service. The provider accepts only domain-shaped input on mainnet, applies a short request timeout, validates the returned record, and uses the lower-case domain as the label and the owner address as the navigation target. It currently hides the separate name-service account result, so the search path leads directly to the account that controls the domain. Focused tests cover cluster and input gating, case normalization, invalid responses, and fetch failure fallback.

References: app/…/domain-search-provider.ts• L10-67 app/…/domain-search-provider.test.ts• L9-122 app/…/route.ts• L17-34

Owned domain enrichment

Account views can enrich an address with the domain names it owns. SNS and ANS data are collected as separate sources, merged into one sorted list, and shown with the name-service account for each name. This gives the account page both a readable identity and a link to the underlying record.

References: app/…/DomainsCard.tsx• L11-32 app/…/BaseDomainsCard.tsx• L26-44 app/…/types.ts• L1-4

Domain ownership is available only where the name-service data is meaningful. The client enables the owned-domain reads for mainnet and custom contexts. The SNS endpoint validates the wallet address, returns an explicit empty result when no records exist, and keeps upstream failures separate from a valid empty response.

References: app/…/use-user-sns-domains.ts• L9-28 app/…/use-user-ans-domains.ts• L9-28 app/…/route.ts• L15-37 app/…/route.ts• L15-32

Program identity

Program identity makes executable accounts and transaction instructions readable without hiding their public keys. It combines a built-in address registry with program metadata and verification records, then uses the best available name or leaves the address visible when no trusted name exists.

Known program identity

The built-in program registry maps known program addresses to names and cluster deployments. It covers native programs, loaders, token programs, name services, and selected ecosystem programs, so common instruction and account views can show a useful label before any network metadata is loaded.

References: app/…/programs.ts• L18-46 app/…/programs.ts• L104-115 app/…/tx.ts• L22-35

Search uses the same known identity records to return program results only for programs deployed on the active cluster. Verified entries that are not already in the built-in registry can add a separate verified-program result on mainnet. The verified result points to build context rather than replacing the known program identity.

References: app/…/program-search-provider.ts• L21-47 app/…/verified-programs-search-provider.ts• L9-57

Program metadata

Program metadata enriches an otherwise unknown program with a name and interface description when the program publishes an IDL. The shared IDL resolution supplies both Anchor and Program Metadata sources, while consumers choose the source that fits the program or view.

References: app/…/resolve-program-idls.ts• L11-29 app/…/resolve-program-idls.ts• L31-68 app/…/use-program-idls.ts• L14-27

The program-name display follows a safe order: use the known label first, then try Program Metadata and Anchor-derived names, and finally keep the default or absent label. The same resolved IDL data is shared with the IDL card and transaction inspection so those views do not present conflicting program identities. Programs that are known not to publish Anchor IDLs are treated as a valid no-IDL case instead of being queried for missing Anchor metadata. Interactive instruction forms also treat instruction and argument names from an on-chain IDL as untrusted data while turning them into values for instruction submission and simulation.

References: app/…/program-name.tsx• L11-35 app/…/use-program-metadata-idl.tsx• L7-14 app/…/use-program-idls.ts• L14-27 packages/…/programs-without-anchor-idl.ts• L1-25 app/…/use-instruction-form.ts• L28-82 app/…/use-instruction-form.ts• L92-125 app/…/use-instruction-form.spec.ts• L9-33

Program Metadata accounts provide a separate on-chain identity surface for published program data. Their account headers can add the authority, target program, data source, and data shape to account inspection, while a malformed or newer header still leaves the account visible with its base identity.

References: packages/…/program-metadata.ts• L22-29 packages/…/program-metadata.ts• L31-65 packages/…/program-metadata.ts• L69-78

Verification identity

Verified-build data answers a different question from a program name: whether the deployed program bytes match a build recorded by a trusted verification service. The Explorer exposes this status only for clusters with a verification registry and keeps repository, commit, signer, and hash context with the result.

References: app/…/verified-builds.tsx• L16-64

The built-in verified-program snapshot is refreshed from OSecure and enriched with IDL names and safe repository URLs. Only programs confirmed as verified enter the snapshot, which lets search mark them as verified without treating every known program label as a security claim.

References: scripts/update-verified-programs.ts• L7-12 scripts/update-verified-programs.ts• L89-131

Security identity

Security identity gives a program a published contact and disclosure record when one exists. It reads the canonical Program Metadata security record first and can use the legacy Neodyme record as a second source, then presents the source and parsed fields with a warning that the content is self-reported.

Security metadata

Known clusters use a server route for security records, while custom or local clusters read the selected RPC directly. The server route checks the cluster and program address before it queries canonical Program Metadata and legacy records. An absent or unparseable record is a cacheable empty success, while an RPC failure remains an uncached error so the client can retry.

References: app/…/route.ts• L16-22 app/…/route.ts• L23-54 app/…/route.ts• L55-71 app/…/load-fetch-security-txt.ts• L8-26

Security metadata is useful context rather than proof of safety. The UI labels the source, allows the record to be downloaded, and states that the program author supplied the information. Invalid content is isolated from the rest of the program view.

References: app/…/SecurityCard.tsx• L44-84

Identity boundaries

Discovery and enrichment add context around a public key; they do not change the key’s on-chain meaning. A friendly domain, program label, IDL name, verification badge, or security record can be absent, stale, cluster-specific, or supplied by an external party, so the address and direct chain data remain the fallback identity.

Source roles

Each source answers a different identity question. Keeping these roles separate prevents a label from being mistaken for a verified build or a self-reported security record from being mistaken for a safety guarantee.

SourceIdentity questionTypical result
On-chain account and program dataWhat address or program exists on this cluster?Public key, owner, deployment, or raw account data
Built-in program recordsIs this a known program or system account?Cluster-aware program, loader, sysvar, or special-account label
SNS or ANSWhat human-readable name maps to this record?Domain name, name-service account, and owner
IDL metadataWhat interface or published program name is available?Program name and instruction or account description
OSecure verificationDoes a recorded build match the deployed bytes?Verified-build status and source build details
security.txtHow can a program author be contacted about security?Contact and policy fields with source attribution

References: app/…/tx.ts• L22-56 app/…/resolve-domain.ts• L22-52 app/…/SecurityCard.tsx• L44-70

Fallback behavior

The system keeps a useful path when enrichment is unavailable. Search providers can return no result, an account can retain its raw data, a program can keep its address or known default label, and a security card can state that no record exists. This lets identity enrichment improve clarity without becoming a requirement for basic inspection.

References: app/…/use-search.ts• L64-77 app/…/program-name.tsx• L11-35 app/…/SecurityCard.tsx• L19-32

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep search tier behavior aligned with the result groups and filter tabs. Remote providers always contribute, while fallback providers run only when local search has no results. A new provider or group mapping can hide a direct address result or change which route users reach.
  • Keep the server-only search exports aligned with Jupiter discovery and token resolution consumers. A missing export can remove a search source without changing the visible search interface.
  • Keep token discovery schema validation, verified filtering, result limits, and asset enrichment aligned. A change can show incomplete token identity or let unverified results bypass a caller's filter.
  • Keep cluster checks aligned across search, domain lookups, program deployments, and metadata caches. A label or name from one network must not appear under another network.
  • Keep external explorer host, path, identifier, and cluster mappings aligned with the result contract. A parser change can create a route for the wrong entity or send a pasted URL to the wrong network.
  • Keep result-carried cluster data aligned with route construction. External Explorer URLs and custom cluster results must preserve their source context.
  • Keep target query parsing aligned with cluster insertion. A route with its own query values must not lose those values when navigation adds the cluster.
  • Keep domain normalization and name-service derivation rules aligned. A change can make search resolution disagree with owned-domain enrichment.
  • Keep the domain provider's mainnet gate, response validation, and owner-only result aligned with the domain-info contract. A change can expose a wrong-cluster result, an invalid route, or a name-service account that the current search experience intentionally hides.
  • Keep SNS address validation and empty-result handling aligned with the domain cards. Invalid addresses and addresses with no domains must not look like upstream service failures.
  • Keep filter counts, visible tabs, active-filter fallback, and group order aligned. A UI change can hide a result class or leave the active filter without a matching view.
  • Keep search result labels, icons, verification markers, and cluster data aligned with the result contract. A display-only change must not remove the data needed for navigation or trust context.
  • Keep search analytics tied to completed non-empty queries and selected result context. Changes to loading, debounce, or selection state can silently create duplicate or missing events.
  • Keep known program labels separate from verification status and self-reported security metadata. These sources have different trust levels and failure meaning.
  • Keep IDL, program-name, instruction-decoding, and IDL-card consumers on the shared resolution contract so they do not show different program identities.
  • Keep interactive IDL form field paths, default values, and flattened instruction call parameters aligned. Names supplied by an on-chain IDL must remain data and must not write through shared object properties.
  • Keep the known no-Anchor-IDL program set aligned with every IDL enrichment path. Built-in programs can otherwise create repeated lookups and turn a normal no-IDL case into a retryable failure.
  • Keep Program Metadata account decoding additive to base account identity. Header changes must not make a malformed or newer account disappear from inspection.
  • Keep absent metadata distinct from upstream failure. Missing names or security records are valid empty states; RPC or service failures need retry or error handling.

Important failure modes

TriggerConsequenceGuard
A search provider fails while resolving a queryResults from that source disappear and the query may look incompleteRun providers independently and discard only the failed provider result
Jupiter discovery has no API key or returns a non-matching responseToken results disappear even when the query could match a tokenTreat provider absence as an empty result and validate the upstream response before mapping it
A pasted URL uses an unsupported host, path, or protocolThe query produces no route instead of opening an unrelated pageAccept only recognized explorers and route mappings
An external explorer URL has an unknown cluster valueThe result opens on the default networkMap known cluster values and keep the default behavior explicit
A filter count or group mapping becomes staleA result can be hidden behind the wrong tab or the active tab can show no matching groupDerive counts and filtered groups from the same filter definitions
An invalid wallet address reaches the SNS domain endpointThe request can fail after it leaves the client and produce an unclear domain stateValidate the public key at the endpoint before fetching domain records
A result loses its cluster context during navigationA valid address opens against the wrong networkLet result-owned cluster data override the search bar cluster
A target route query is split at every question markPart of a query value is lost during navigationSplit only at the first question mark and preserve the remaining query string
A domain is not normalized before name-service lookupA valid mixed-case name fails to resolveNormalize domain input before SNS or ANS resolution
A domain search accepts an invalid or incomplete domain-info responseSearch can produce an unusable owner routeValidate the response and return no result when its required fields are absent or malformed
A result icon fails to load without a display fallbackThe result loses its visual identity and becomes harder to scanShow the first label character when the icon request fails
A program label is treated as verificationUsers may read a known name as proof of a trusted buildKeep registry labels, verified builds, and security.txt as separate metadata types
An instruction name from an on-chain IDL is used as an unguarded object keyDefault form values can alter shared object behavior instead of staying in the instruction formCheck own properties before creating instruction-specific argument maps
An Anchor IDL lookup runs for a built-in program with no Anchor IDLA normal no-IDL case can become a repeated or transient RPC failureSkip known no-Anchor-IDL programs during Anchor enrichment
A Program Metadata account has a truncated or newer headerHeader fields are unavailable, but the account can still be usefulKeep the base account identity and degrade only the optional header fields
An IDL or security RPC request fails and is cached as emptyLater views show a false negative for the rest of the sessionTreat upstream failures as errors that can retry; cache only valid absence
Self-reported security data is shown without its source warningUsers may treat author-supplied contact data as an independent safety checkDisplay the source and the self-reported warning with the parsed record
Search analytics runs for an empty query or more than once for one completionUsage data overstates searches or counts the same search twiceTrack only a non-empty query when loading changes from true to false

Key files

FileWhy to read it
app/…/use-search.tsShows the high-level search orchestration, provider failure isolation, and the query-specific epoch bound
app/…/registry.tsShows the search provider groups and priority model
app/…/use-search-navigation.tsShows how a result becomes a cluster-aware route
app/…/parse-explorer-url.tsShows how supported external Explorer URLs become local route data
app/…/explorer-url-search-provider.tsShows how parsed external URLs enter the search result contract
app/…/server.tsShows the server boundary for Jupiter discovery and token resolution helpers
app/…/discover-with-jupiter.tsShows the validated external token discovery boundary and its empty-result fallback
app/…/resolve-search-tokens.tsShows token filtering, limits, cluster-aware asset enrichment, and output normalization
app/…/types.tsDefines the shared token discovery identity passed across the server boundary
app/…/fetch-token-results.tsShows how cluster-aware token results become search options
app/…/filter-tabs.tsShows how result groups become search filters, counts, active-filter behavior, and the default result order
app/…/SearchBar.tsxShows the user-facing search state, debounce, selection, and navigation handoff
app/…/BaseSearch.tsxShows the result panel, loading and empty states, keyboard behavior, and grouped result rendering
app/…/SearchResultItem.tsxShows how labels, icons, fallback identity, and source verification warnings appear in results
app/…/program-search-provider.tsShows cluster-aware lookup of known program identity
app/…/verified-programs-search-provider.tsShows mainnet search for verified programs that are not already known locally
app/…/domain-search-provider.tsShows how a mainnet domain query becomes an owner account result
app/…/domain-search-provider.test.tsShows the contract for domain gating, normalization, validation, and empty-result fallback
app/…/feature-gate-search-provider.tsShows how feature-gate names and SIMD numbers become account results
app/…/resolve-domain.tsShows the shared domain-to-owner resolution boundary
app/…/DomainsCard.tsxShows how SNS and ANS ownership data becomes account enrichment
app/…/route.tsShows validation and response states for owned SNS domains
app/…/programs.tsShows the known program and system-account identity records
app/…/program-name.tsxShows the fallback order for readable program names
app/…/use-program-idls.tsShows the shared program IDL identity contract
app/…/use-instruction-form.tsShows how IDL-defined instruction inputs become safe submission and simulation data
app/…/use-instruction-form.spec.tsShows the guard against on-chain instruction names writing onto shared objects
packages/…/programs-without-anchor-idl.tsShows which known programs are valid no-Anchor-IDL cases
packages/…/program-metadata.tsShows how Program Metadata accounts add optional on-chain identity fields
app/…/verified-builds.tsxShows the separate verified-build identity and cluster support
app/…/useSecurityTxt.tsShows server and custom-RPC security metadata resolution
app/…/route.tsShows cluster validation, record lookup, caching, and retryable error handling
app/…/SecurityCard.tsxShows source-aware security presentation and trust limits
scripts/update-verified-programs.tsShows how the verified-program search snapshot is produced