Skip to main content
Engineering

From transaction review to signature: what Rockpile checks

Follow a Solana transaction through decoding, policy checks, approval, and signing—and see what those checks can and cannot establish.

Suppose you intend to send a small amount of SOL to a new address. A confirmation screen says the amount looks right. That is useful only if the transaction eventually signed is the transaction you reviewed.

Rockpile’s Solana review path connects those two events. It inspects the transaction, applies the relevant policy, and binds approval to a specific payload, wallet, and action. A changed request needs another review.

Read the transaction itself

A transaction contains instructions telling blockchain programs what to do. A friendly label supplied by a website or provider is not enough to establish those effects.

For transactions submitted through the general-purpose signing path, Rockpile decodes supported instructions and exposes the program, participating accounts, signer and write permissions, and transfer details where they can be determined. For token operations, that includes distinguishing a transfer from sensitive actions such as approving a delegate or changing an authority.

Decoded transfer amounts are read in their native integer units before being formatted for display. For example, an instruction encoding 100,000,000 lamports represents 0.1 SOL. Reading the integer directly avoids losing precision through floating-point conversion.

The reviewer also checks the signing identity. In this path, the selected wallet must match the fee payer, and unexpected required signers are rejected. Specialized flows that need another signer must authorize that signer explicitly.

Stop when essential details cannot be resolved

Versioned Solana transactions can refer to addresses through lookup tables. The general-purpose sender rejects unresolved lookup-table references rather than displaying an incomplete account list and proceeding.

Specialized integrations have their own construction and validation paths for more complex transactions. Each must resolve the information needed by its review; acceptance by one path does not imply that the general-purpose sender can interpret the same transaction.

There is a similar boundary around spending limits. When the software-wallet SOL limit is enabled, the policy includes decoded outbound SOL and a network-fee bound. If a program can cause debits that this path cannot bound, the transaction is rejected under that limit. An incomplete calculation must not silently become permission to spend.

Apply policy before approval

The review distinguishes checks that block a request from warnings that call for attention. Some depend on the portfolio’s settings:

ControlQuestion it addresses
Program policyWith strict allowlisting enabled, is every program explicitly allowed? Otherwise, unrecognized programs produce a warning.
Destination warningWhen enabled, is a decoded destination absent from the trusted list?
Fee checksIs the transaction’s requested priority fee within the policy bound?
Software-wallet SOL limitWhen enabled, can SOL outflow and the fee allowance be bounded within the limit?
Permission warningDoes an instruction change token authority or delegated access?

These controls are not interchangeable. An allowed program can still be used for an unwanted action. A familiar destination can still be the wrong recipient for this payment. A SOL limit is not a universal limit on the value of every token or DeFi position.

Trading flows may also provide simulation, slippage, and price-impact information. The swap-validation article follows the additional checks applied to a provider’s quote and instructions. Those are useful inputs to review, but a simulation describes execution against particular state; it does not guarantee future execution or establish that an investment is sound.

Bind approval to the request

The general-purpose review records a cryptographic digest—a fingerprint of the request—covering the serialized transaction, transaction version, selected wallet, and requested action. Before signing, Rockpile computes that fingerprint again and compares it with the reviewed one. The review expires after two minutes in the implementation described here.

The action is part of the binding: permission to sign does not automatically become permission to sign and send. Changing the payload, wallet, or action invalidates the review. Expiration requires the user to review again.

Decode and check policy
           ↓
Review the exact request
           ↓
Check binding and expiration
           ↓
Authorize and sign

If a recipient changes after review, even while the amount stays the same, the request no longer matches. The digest catches substitution; it cannot establish that the original recipient was the person you meant to pay. Hardware-device review adds a separate place to inspect the request.

A signature is still not a completed payment

Signing authorizes the transaction. Broadcasting makes it available to the network. Confirmation establishes an observed network result. Rockpile keeps those stages distinct, including when the sender loses its connection after submission.

The review-policy tests include changed payloads, changed actions, expired approvals, wrong fee payers, unexpected signers, unresolved accounts, and unbounded debits. They document intended rejection behavior; passing those tests alone would not establish that every integration is safe.

Bitcoin uses a different payment model; its native validator also has to establish input ownership and wallet-owned change.

For the failure that happens after approval, continue with what an unknown transaction status means.