Transaction inspection and execution analysis
Transaction inspection turns a Solana transaction signature or message into views that explain its identity, requested actions, recorded effects, and possible execution. It keeps confirmed chain data separate from new simulation results so an engineer can compare what the transaction asked for with what the network recorded or may produce.
Inspection model
The inspection model has two paths. A signature opens a confirmed transaction and its metadata. A raw message opens a transaction before it has a recorded result. Both paths use the same message concepts for account, instruction, and execution analysis.
This diagram shows how a transaction input becomes the main inspection views.
flowchart LR
A[Signature or raw message] --> B[Resolve transaction data]
B --> C[Summary and metadata]
B --> D[Accounts and balances]
B --> E[Instructions]
B --> F[Recorded logs]
B --> G[Simulation]
G --> H[Possible logs, balances, and compute use]
E --> I[Decoded instruction views]
The transaction detail route explains signature routing, history, receipts, and the recorded transaction page. The instruction decoding and simulation page explains parser choice, instruction cards, simulation, and compute-use profiling. The instruction-card rendering page explains reusable instruction-card surfaces. The transaction sharing page explains share-card generation and public metadata.
Transaction data boundary
The data boundary keeps two views of a transaction side by side. The parsed view supports page content. The raw view preserves the bytes and signed envelope needed for exact inspection.
Signature resolution
The system resolves a signature against the selected cluster. It reads confirmation status and block time as one state, then loads transaction details when the network reports a match. A missing result is different from a request that has not completed, so the page can show a clear not-found state.
When the selected cluster has no result, the not-found view probes other public clusters. It excludes the current cluster, continues when a probe returns an RPC error, and never sends the signature to an endpoint supplied in the query string. If another cluster has the transaction, the view links to it. If no cluster has it, the view can explain that records before the cluster's first available block are not present. A retry remains available when the caller supplies one.
The selected cluster is part of the request identity. Changing clusters clears cached status and detail data before the next lookup. This prevents a signature result from one network from appearing on another.
References: app/…/index.tsx• L42-60 app/…/index.tsx• L63-127 app/…/parsed.tsx• L23-64 app/…/TransactionNotFoundCard.tsx• L10-36 app/…/use-cluster-transaction-search.spec.ts• L41-122 app/…/TransactionNotFoundCard.spec.tsx• L74-127
Parsed and wire views
The parsed view supplies the fields that describe recorded execution. These include slot, time, accounts, instructions, inner instructions, fees, logs, resource use, and SOL and token balances. The wire view supplies the serialized message, signatures, transaction version, and size information.
The detail fetch asks the selected RPC for confirmed data in parsed form. An adapter converts that response into the shared transaction shape. The wire fetch remains the source for message bytes and version-specific resource data. Newer transaction versions may have wire data without a matching high-level message object. Byte-level inspection can therefore remain available when account or instruction views have limits.
References: app/…/types.ts• L19-64 app/…/fetch-transaction-details.ts• L14-29 app/…/fetch-raw-transaction.ts• L16-35 app/…/adapt-parsed-transaction.ts• L61-113 app/…/adapt-parsed-transaction.ts• L120-145 app/…/index.ts• L1-12
Transaction record assembly
Transaction history assembles fetched records into a signature-keyed view that later requests can enrich. A new record replaces an older record with the same signature. Records from separate updates remain available for summary and receipt views.
References: app/…/merge-transaction-map.ts• L3-11 app/…/reconcile.ts• L5-18 app/…/reconcile.ts• L31-49
Recorded transaction views
The recorded transaction page presents one confirmed result as linked views. Each view answers a different inspection question. All views use the same transaction and metadata record.
Summary and metadata
The summary gives the transaction's identity and chain context before the detailed panels. It shows the result, finality, signature, fee payer, slot, block time, fees, version, serialized size, and resource data when the network provides it. It can also show the total priority fee and message resource limits when the transaction declares them.
The summary can project a fee under the SIMD-0553 model when the needed recorded and requested resource data exists. When the feature is enabled, it presents projections at staged rates. It compares the requested resource cost with the fee the recorded transaction paid. This is an estimate for comparison, not a fee that the recorded transaction paid. Metadata also links account indexes to balances and instructions. Inner-instruction indexes link nested calls to their parent instructions. Transaction errors identify failed execution.
The summary loads raw data separately from parsed details. This keeps raw inspection and download available even when the main detail view is ready first. It retries missing raw data after finality and through refresh or error actions, but it does not retry a signature that the cluster does not have or start another request while one is active. A cleared cache after an endpoint change permits a new lookup. For time, it prefers the raw record and falls back to the parsed record. It omits timestamp rows while either fetch is still in flight and shows an unavailable state only after both records have no block time. Receipt sharing uses a public page only for supported clusters because custom clusters use user-specific RPC access.
References: app/…/SummaryCard.tsx• L76-140 app/…/SummaryCard.tsx• L144-186 app/…/SummaryCard.tsx• L388-403 app/…/SummaryCard-fee-projection.spec.tsx• L43-89 app/…/SummaryCard-raw-retry.spec.tsx• L40-124 app/…/SummaryCard-timestamp.spec.tsx• L40-72 app/…/transaction.ts• L28-44 app/…/SummaryCard.stories.tsx• L94-131 app/…/index.ts• L1-13 app/…/types.ts• L25-64 app/…/adapt-parsed-transaction.ts• L120-145 app/…/page.tsx• L98-101
Page metadata and share previews
The transaction page exposes a public title, description, URL, and social preview for the recorded view. The default view points to the transaction page and its transaction image. An enabled receipt view uses receipt-specific metadata and an image.
Cluster selection remains part of public metadata for supported clusters. A custom cluster uses the visitor's private RPC, so the page keeps public tags but removes the image and does not expose the custom endpoint. An unknown cluster slug falls back to the default public cluster rather than creating a public URL for an unrecognized network.
References: app/…/page.tsx• L19-95 app/…/page.spec.ts• L18-131
Accounts and balance changes
The account view shows the addresses named by the transaction and the roles they have in the message. It marks the fee payer, signers, writable accounts, programs, and accounts loaded from address lookup tables. It resolves addresses loaded through lookup tables and shows the SOL change for each account.
On wide screens, an account row can expand in place. On smaller screens, the same account opens in a detail drawer. Both views use current account data for the selected cluster. They can show the assigned program, data size, executable state, balance, parsed data, and raw account data. This data may differ from the state at transaction time.
The account list also reports the total current data size when every account returns a known size. Missing accounts count as zero bytes. If any size is unknown or the size request fails, the account rows remain available but the total is omitted. Raw account bytes load only when the viewer opens the data control. A failed raw-data request is shown as an error and can retry when the viewer opens again.
The balance views explain effects at two levels. Recorded SOL and token balances show the change that the confirmed transaction produced. Token rows resolve a symbol only when the selected cluster has a known chain identity. If a mint is absent from the response or a lookup fails, the row stays usable with the generic unit label and a failed lookup can be retried. Simulation balance views show changes that a new execution might produce. These views must not be read as interchangeable because a simulation does not commit state.
The account detail drawer also supports address actions. An engineer can copy the address, open its account page, or edit its local nickname. Closing the nickname editor with Escape does not close the account drawer.
References: app/…/AccountsCard.tsx• L21-33 app/…/AccountsCard.tsx• L35-153 app/…/AccountsCard.tsx• L155-223 app/…/AccountBadges.tsx• L4-39 app/…/AccountDetailDrawer.tsx• L24-94 app/…/AccountExpandedContent.tsx• L72-176 app/…/AccountBadges.spec.tsx• L19-35 app/…/AccountDetailDrawer.test.tsx• L55-76 app/…/AccountExpandedContent-raw-data.spec.tsx• L44-115 app/…/AccountsCard-drawer.spec.tsx• L17-64 app/…/AccountsCard-expanded.spec.tsx• L13-43 app/…/AccountsCard-total.spec.tsx• L25-69 app/…/AccountDetailDrawer.stories.tsx• L25-67 app/…/AccountExpandedContent.stories.tsx• L19-155 app/…/accountsTableGrid.ts• L1-17 app/…/TokenBalancesCard.tsx• L29-101 app/…/TokenBalancesCard.tsx• L161-257 app/…/TokenBalancesCard-symbols.spec.tsx• L35-121 app/…/fetch-token-infos-from-api.ts• L34-74 app/…/get-chain-id.ts• L19-31
Token transfer receipt
The receipt view turns recognized token transfer instructions into a concise transfer result. It uses transaction metadata to resolve the token mint and receiver when the instruction does not carry those values directly. A receipt can include several transfers when they use one mint. Mixed-mint transfers are rejected because one total would be misleading.
References: app/…/token-transfer.ts• L26-75 app/…/token-transfer.ts• L96-133 app/…/token-transfer.ts• L168-227
Instructions and program logs
The instruction view turns top-level calls and trusted inner calls into an ordered instruction tree. Each inner call stays below the top-level instruction at the index that produced it, so the tree preserves the relationship between requested actions and program-invoked actions. Parsed RPC instructions remain parsed. Partially decoded instructions become byte-level instructions when their account references can be resolved; an unresolved instruction or child remains absent rather than showing incorrect account data.
The transaction surface passes its signature into shared instruction views. Dedicated program cards handle recognized instruction families. IDL-based decoding and generic cards cover supported programs without a dedicated card and unknown instructions. A per-card fallback keeps a top-level or inner instruction visible when a specialized card fails. Program Metadata content instructions use their dedicated view before the shared IDL fallback. RPC-parsed token batch instructions use a dedicated batch view before normal token decoding. Compact summaries can name parsed instructions and omit Compute Budget setup calls that do not describe the transaction's main action. The compute view keeps those calls so its positions stay aligned with recorded resource data. The instruction decoding and simulation page covers the deeper decoding path.
The log view presents the runtime messages that the transaction produced. It groups logs by top-level instruction, shows nested program calls, marks success or failure, and associates compute use with the same instruction order. A raw form remains available when the parsed form does not give enough context. On wide screens, the page places logs beside the instruction list and keeps them aligned during scrolling. On smaller screens, the page presents the sections as separate views.
References: app/…/instruction-nodes.ts• L11-35 app/…/instruction-nodes.spec.ts• L26-61 app/…/page-client.tsx• L108-178 app/…/InstructionsSection.tsx• L15-55 app/…/InstructionsSection-CardFallback.spec.tsx• L128-205 app/…/InstructionsSection-Pmp.spec.tsx• L84-89 app/…/InstructionNodeCard.tsx• L57-112 app/…/instruction-parser-dispatcher.ts• L4-45 app/…/ProgramLogSection.tsx• L29-73 app/…/program-logs.ts• L14-26 app/…/instruction-summary.ts• L16-24 app/…/instruction-summary.ts• L38-77
Execution analysis
Execution analysis adds a controlled, non-persistent run of the transaction message. It helps an engineer inspect likely execution behavior for a raw message or compare a confirmed transaction with the current cluster state.
Simulation view
Simulation runs on demand against the selected cluster's latest confirmed ledger state. It does not save state or check signatures. It is safe for analysis but cannot prove that a future send will succeed.
The simulation result can include program logs, an error, SOL balance changes, token balance changes, and consumed compute units. The UI keeps logs when they can explain a failure. It hides balance changes after an error because those changes may not describe a valid completed state.
References: app/…/SimulationCard.tsx• L23-75 app/…/SimulationCard.tsx• L79-110 app/…/simulate-transaction.ts• L39-77 app/…/simulate-transaction.ts• L180-219
Compute-use view
The compute-use view shows the cost of each top-level instruction and the transaction total when measured data exists. It links instruction order to parsed logs, so the chart helps locate which part of execution used resources or stopped with an error.
When a log has no measured value for an instruction, the view uses a known or epoch-aware reserved value as an estimate. The estimate gives the chart a useful shape. It is not a recorded runtime cost.
References: app/…/CUProfilingSection.tsx• L12-43 app/…/SimulatorCUProfilingCard.tsx• L15-35 app/…/format-instruction-logs.ts• L18-49 app/…/CUProfilingCard.tsx• L197-249
Raw message inspection
The standalone inspector accepts a transaction signature, a raw base58 or base64 message, or a supported multisig transaction account. A signature loads the raw transaction from the selected cluster. A raw message is decoded locally and can stay in the URL so the same inspection can be shared.
The inspector then shows message overview data, signatures when supplied, account roles, address lookup information, instructions, and optional simulation results. It can verify supplied signatures against the message. Missing signatures remain distinct from invalid signatures.
References: app/…/page-client.tsx• L7-12 app/…/InspectorPage.tsx• L355-475 app/…/RawInputCard.tsx• L145-224 app/…/SignaturesCard.tsx• L21-38
Change checklist
When these files or sections are changed, remember to consider these:
- Changes to the parsed or raw transaction contract must preserve the separate needs of the detail page, raw download, inspector, and simulation input.
- Changes to account indexes or lookup-table resolution must keep account roles, instruction program IDs, inner calls, SOL balance rows, and token balance rows aligned.
- Changes to instruction-node assembly must keep top-level indexes, child indexes, and inner-instruction order stable. An unresolved account must not be replaced with a misleading instruction node.
- Changes to the account detail surface must keep desktop inline expansion and smaller-screen drawer presentation on the same current-account data contract.
- Changes to current account size fetching must keep the total conditional on complete, known results. A size failure must not remove the transaction account rows.
- Changes to lazy raw account loading must preserve on-demand fetch, cached success, and retry after failure.
- Changes to account labels or address actions must keep fee-payer, signer, writable, program, and lookup-table roles consistent in rows and drawers.
- Changes to recorded log grouping must preserve top-level instruction order because the log view and compute profile use the same positions.
- Changes to simulation error handling must keep diagnostic logs separate from balance changes that may not represent a completed execution.
- Changes to cluster selection must clear signature, parsed-detail, raw-detail, and simulation identities together.
- Changes to transaction-version support must preserve both byte-level access and the message view required for instruction and account analysis.
- Changes to fee projection inputs or labels must keep declared priority fees, requested resource limits, recorded resource use, staged rates, and the projected fee model distinct.
- Changes to token balance mapping must preserve zero post-balances for removed accounts, separate mint changes, and use the correct account index.
- Changes to token symbol lookup must keep the request scoped to the selected cluster and its known chain identity. A failed lookup must not cache the generic unit label as a successful result.
- Changes to token receipt aggregation must keep mint validation and base-unit summation aligned with token balance decimals.
- Changes to transaction-map merging must preserve signature identity and allow later records to replace stale records without dropping unrelated history.
- Changes to compact instruction naming must keep Compute Budget rows out of summaries but retain their positions for compute-use views.
- Changes to unresolved instruction naming must keep raw program and data available for later name lookup without hiding the instruction.
- Changes to the shared instruction parser dispatcher or decoder order must preserve the parser contract used by both UI and non-UI consumers. Dedicated views for recognized programs must still win over generic and IDL fallbacks.
- Changes to instruction decoder order or fallback behavior must preserve dedicated views for recognized programs and a generic view for unsupported, failed, or throwing cards. Error boundaries must protect both top-level and inner instructions across parsed and raw instruction paths. Token batch instructions must continue to use their batch view.
- Changes to Program Metadata instruction routing must keep inline content operations on their dedicated decoder and allow non-content operations to use the shared IDL fallback.
- Changes to receipt metadata or cluster sharing must keep custom-cluster receipts off the public receipt path.
- Changes to transaction-page metadata must keep default and receipt URLs, images, titles, and social-card types aligned for supported clusters.
- Changes to custom-cluster handling must keep private RPC values out of public page metadata and omit server-generated images that cannot reach the custom RPC.
- Changes to raw-data retry or timestamp selection must keep parsed and wire fetches independent, avoid duplicate in-flight requests, suppress retries for a missing signature, and preserve the raw-first timestamp fallback.
- Changes to not-found search must preserve the distinction between a pending cluster probe, an adjacent-cluster match, and unavailable historical blocks. Probes must exclude the current cluster, continue after RPC errors, and ignore query-string endpoints.
- Changes to the instruction surface identity must keep the transaction page and inspector explicit about the signature used by their instruction cards.
Important failure modes
| Trigger | Consequence | Guard |
|---|---|---|
| Signature status is missing | The system cannot prove that a transaction exists, so detail views must not render as complete | Keep not-found separate from loading and search nearby clusters before showing historical-availability guidance |
| A cluster probe receives an RPC error | A transaction on a later public cluster can be reported as absent | Continue probing the remaining public clusters and keep the error distinct from a confirmed not-found result |
| A link supplies a custom RPC endpoint | Probing can disclose the viewed signature to an endpoint chosen by the link author | Use only configured public cluster endpoints for cross-cluster search |
| Parsed details load but raw data is unavailable | The recorded page can work, but download, signature checks, or raw inspection cannot | Keep raw loading independent, retry after finality or user refresh, and show a raw-data error without discarding parsed details |
| Both transaction records are still in flight | The summary can show a false unavailable timestamp | Omit timestamp rows until both fetches finish |
| An instruction or inner instruction names an account outside the message | The instruction tree cannot map the account safely | Keep that node absent and preserve the order of later resolvable children |
| Address lookup data cannot be resolved | Account indexes and instruction account lists cannot be mapped to addresses | Wait for lookup data or show a lookup-specific error before rendering dependent instructions |
| Current account data cannot be loaded | Recorded balances remain usable, but expanded account details cannot be shown | Keep the account row or drawer available and show an account-info error |
| Current account size is unknown or the size request fails | The account list cannot show a trustworthy total size | Keep account rows visible and omit only the total |
| Raw account data fetch fails | The expanded account view cannot show bytes | Show a fetch error instead of an empty-data state and retry when the data control is opened again |
| Nickname editing receives Escape | A parent drawer can close while the user only intended to cancel editing | Stop the drawer dismissal while the nickname editor is active |
| Token symbol lookup fails or uses an unknown chain identity | Rows can show a stale or misleading symbol, or a lookup can target a cluster without a known chain | Keep the generic tokens label, scope lookup by cluster and chain identity, and allow a failed request to retry |
| Simulation returns an error with logs | Logs can explain the failure, but simulated balance changes can mislead | Keep logs and error details while suppressing balance-change cards |
| Log output is truncated or has no matching invocation | The execution tree or failed instruction can be incomplete | Mark truncation and add runtime error context when the transaction error identifies it |
| A transaction version has no supported high-level message view | The inspector cannot render account and instruction panels even though bytes exist | Preserve the raw message and report unsupported high-level decoding clearly |
| Fee projection lacks requested or recorded resource data | The summary cannot show a trustworthy comparison fee | Leave the projection out instead of filling missing inputs with a guess |
| A token receipt contains transfers from more than one mint | One receipt total would combine unrelated token units | Reject the receipt as mixed-mint |
| A transaction update replaces the wrong signature entry | A detail or receipt view can show data for a different transaction | Merge by signature and let the update win only for that signature |
| Compute Budget rows are removed from a log-aligned list | Resource values attach to the wrong instruction | Filter them only from unpaired summaries and retain them in compute views |
| A parser is omitted from the shared dispatcher | A supported instruction can lose its decoded name or card in one inspection surface | Register the parser in the shared dispatcher and keep the UI's generic fallback |
| An instruction decoder or specialized card fails | A valid top-level or inner instruction can lose its explanation or break the instruction section | Keep the raw or parsed instruction available and use a per-card generic fallback for both top-level and inner instructions |
| An RPC-parsed token batch is sent to a normal token decoder | The instruction card can throw or show no useful explanation | Detect the batch type first and use the dedicated batch card with a generic fallback |
| An unknown instruction has no deferred name lookup | A valid instruction stays generic even when a program name source could explain it | Keep the program ID and bounded data prefix for later resolution |
| A Program Metadata instruction bypasses its dedicated route | Content operations can lose their decoded view or non-content operations can skip available IDL detail | Check Program Metadata instructions before the generic IDL route and retain a generic fallback |
| A custom cluster is used for public page or receipt sharing | A public page or image route can expose a private endpoint or fail to reach the user's RPC | Omit custom-cluster images and custom endpoint values from public metadata |
| An unknown cluster slug is treated as a public cluster | Share links can point to an invalid network or image | Fall back to the default public cluster when the slug is not recognized |
| The instruction surface has no transaction identity | Shared instruction cards cannot associate the view with the transaction that contains them | Pass the signature through the transaction surface and keep a generic fallback for card failures |
Key files
| File | Why to read it |
|---|---|
| app/…/page.tsx | Defines transaction-page metadata, public share previews, and the receipt-sharing boundary. |
| app/…/page.spec.ts | States the metadata contract for default, receipt, custom-cluster, and unknown-cluster views. |
| app/…/page-client.tsx | Connects a valid signature to the summary, account, token, instruction, log, and compute views. |
| app/…/index.tsx | Defines signature status, confirmation data, and cluster-scoped transaction state. |
| app/…/parsed.tsx | Connects a signature to parsed transaction details. |
| app/…/raw.tsx | Connects a signature to wire bytes and raw transaction metadata. |
| app/…/index.ts | Exposes the transaction fetch, normalization, encoding, merge, and instruction-name services used by inspection surfaces. |
| app/…/types.ts | Defines the parsed and raw data boundary used by inspection views. |
| app/…/fetch-transaction-details.ts | Shows how confirmed parsed data enters the transaction entity. |
| app/…/fetch-raw-transaction.ts | Shows how wire data enters the raw inspection path. |
| app/…/adapt-parsed-transaction.ts | Normalizes parsed provider data for the shared transaction inspection model. |
| app/…/merge-transaction-map.ts | Defines how transaction records from separate history updates are combined. |
| app/…/instruction-summary.ts | Defines compact instruction names and the boundary between summaries and log-aligned views. |
| app/…/index.ts | Exposes the fee rules used by the summary's fee comparison view. |
| app/…/index.ts | Exposes transaction feature views that are shared by transaction inspection surfaces. |
| app/…/instruction-nodes.ts | Builds the ordered tree that connects top-level instructions with trusted inner calls. |
| app/…/SummaryCard.tsx | Shows the recorded transaction summary, resource data, timestamp fallback, raw-data actions, fee comparison, and inspection links. |
| app/…/TransactionNotFoundCard.tsx | Connects a missing signature to nearby-cluster search and historical-availability guidance. |
| app/…/AccountsCard.tsx | Connects transaction account roles and SOL balance changes to responsive account details and current account size. |
| app/…/AccountBadges.tsx | Defines the account roles shown as badges in rows and account drawers. |
| app/…/AccountDetailDrawer.tsx | Defines the smaller-screen account detail surface and its account actions. |
| app/…/AccountExpandedContent.tsx | Defines the current account data, lazy raw bytes, and error states shown in both expanded account layouts. |
| app/…/TokenBalancesCard.tsx | Converts pre- and post-transaction token balances into token change rows and resolves mint symbols only for known chain identities. |
| app/…/TokenBalancesCard-symbols.spec.tsx | Defines the token-label contract for multiple mints, omitted symbols, failed lookups, cluster changes, and custom clusters. |
| app/…/fetch-token-infos-from-api.ts | Defines cluster and chain validation for token symbol lookup and its failed-request result. |
| app/…/get-chain-id.ts | Defines which public and custom cluster identities can support token metadata lookup. |
| app/…/InstructionsSection.tsx | Connects the instruction tree and transaction identity to shared instruction-card rendering. |
| app/…/InstructionNodeCard.tsx | Routes instruction nodes to dedicated, IDL, name-only, batch, or generic cards with per-card fallback. |
| app/…/instruction-parser-dispatcher.ts | Registers the shared instruction parsers used to recognize raw instructions across inspection consumers. |
| app/…/InstructionsSection-CardFallback.spec.tsx | Verifies that failed specialized cards and unsupported instructions remain visible through generic fallback cards for top-level and inner calls. |
| app/…/ProgramLogSection.tsx | Shows recorded log modes and execution output presentation. |
| app/…/program-logs.ts | Defines the relationship between runtime log text, instruction groups, errors, and compute use. |
| app/…/InspectorPage.tsx | Defines the raw-message and signature-based inspector flow. |
| app/…/simulate-transaction.ts | Defines simulation inputs and the result groups used by execution views. |
| app/…/SimulationCard.tsx | Shows how simulation logs, errors, balances, and compute views are combined. |