Pufferfi's UniFi exposes preconfirmed state before a block seals
Pufferfi's UniFi, an Ethereum based rollup, lets remote procedure call (RPC) clients read preconfirmed transaction state while block lookups by number continue to describe sealed blocks. After a node returns a non-null receipt, supported reads at latest or pending on that same node reflect the transaction. That state remains provisional until the block seals.
The short version: An empty UniFi log query can coexist with a receipted transaction because log APIs wait for block sealing.
Following a receipted transaction through one endpoint
UniFi's read-your-writes guarantee requires receipt and state requests to reach the same node. A shared endpoint address may still route across several nodes. Decide whether the immediate task needs provisional contract state or a sealed block record before interpreting the returned data. An unsealed block is still being built from preconfirmation fragments, although its transactions can already affect state queries.
| Read stage | RPC action or observation | Condition for using the response |
|---|---|---|
| Choose a read endpoint | Use the same UniFi node for the receipt and subsequent state request. | Session affinity matters when the address fronts a load balancer. |
| Obtain the receipt |
Query
eth_getTransactionReceipt
using the transaction hash.
|
The read-your-writes guarantee begins when that node returns a non-null receipt. |
| Identify the receipt's phase |
Inspect
blockHash
alongside the populated
blockNumber
.
|
A zero
blockHash
marks a preconfirmation; do not fetch a block using that hash.
|
| Read the transaction's state |
Run
eth_call
at
latest
or
pending
on the same node.
|
Discarding the unsealed block can return the read to sealed state. |
| Keep the response provisional | Treat the returned contract state as the view of the block being built. | A block-number query still describes the sealed head. |
| Wait for a sealed record | Check the same transaction receipt for its completed block hash. | If the transaction remains included, its sealed receipt carries the real block hash. |
| Reconcile the transaction | Use the real block hash to associate the receipt with its sealed block. | Requests that specify a block hash refer to sealed data. |
| Completion | A non-null receipt supports a provisional state read on the same node. | A real block hash supplies the sealed record; Ethereum finality remains a separate condition. |
What happens when UniFi discards an unsealed block?
Discarding an unsealed UniFi block makes
latest
state fall back to the sealed view until the next fragment arrives. A balance or contract value that a client just read can therefore step back during the preconfirmation window. A preconfirmed receipt has the same provisional character. Its availability supports a read on that node at that moment; it does not make the unsealed history permanent.
Endpoint affinity for read-your-writes
UniFi's read-your-writes guarantee covers receipt and state requests handled by the same node, so the endpoint's routing behavior directly affects consistency.
While a transaction remains in a node's view, a non-null receipt means that an
eth_call
at
latest
on that node reflects it.
The same guarantee covers
eth_getBalance
,
eth_getStorageAt
,
eth_getCode
and
eth_getTransactionCount
at
latest
or
pending
. These methods expose the unsealed block's effects before the block-query surface advances.
When a load balancer sends the receipt request to one backend and the next state request to another, the second node can still expose an earlier view even though the first already returned a receipt for the transaction. Both responses can be consistent with their node's view. Their combination lacks the promised read-your-writes relationship. A single-node endpoint or session-affine routing keeps the required requests together. Reusing one endpoint address alone does not establish which backend handled each call.
State tags and block-query positions
UniFi routes state-oriented queries and block-oriented queries to different views, even when both requests specify a familiar tag such as
latest
.
Latest and pending state
State reads at
latest
and
pending
use the unsealed block that gateways are currently building. They expose the effects of transactions contained in preconfirmation fragments. The unsealed block stands one block ahead of the sealed head, so a state read can contain changes that a
latest
block lookup does not contain. Tag choice determines the state view within the relevant method family; it does not select one universal snapshot across the RPC interface.
Block reads at every tag
eth_blockNumber
reports the sealed head, while
eth_getBlockByNumber
describes sealed blocks even with
pending
. Pairing one of these responses with a
latest
state value does not make them refer to the same block. The block transaction-count method
eth_getBlockTransactionCountByNumber
follows the sealed view as well. The familiar polling relationship between a block number and its block lookup remains coherent because that entire block-query surface stays sealed.
Gateway fragments and the sealing interval
Gateways expose execution results by streaming fragments of a block while it is being built, which lets state and receipts advance before sealing.
Execution before the completed block
UniFi's sequencing layer uses Gattaca's based-op stack. A gateway accepts and validates transactions continuously instead of waiting for an Ethereum block boundary. It broadcasts ordered fragments, and other nodes execute those pieces as they arrive. Receipts can appear within tens of milliseconds, while the completed block can seal up to roughly one second later. These timings describe early execution feedback and block assembly. They do not turn a quick receipt into Ethereum finality or establish a deadline for every response.
Sequencing authority during assigned slots
Gateways provide execution preconfirmations on behalf of Ethereum Layer 1 proposers. Their temporary exclusive write access to UniFi state during assigned slots supports commitments about execution. This allocation explains how a gateway can issue an early receipt while a block remains unfinished. The later block record still belongs to the sealed RPC view.
Receipt fields before and after sealing
Preconfirmed UniFi receipts retain meaningful transaction positions even before a completed block hash exists, allowing clients to distinguish provisional inclusion from a sealed record.
The zero-hash convention
A preconfirmed receipt carries a
blockHash
consisting of 32 zero bytes. The transaction's
blockNumber
and
transactionIndex
remain populated with real values. The populated positions describe the transaction in the unsealed block. Its zero hash cannot identify a retrievable sealed block, so a client must not use that value for a block-hash lookup.
The transaction's sealed identity
Once the block seals, the same transaction reports the actual block hash. Its earlier receipt can describe executed state before that block identifier becomes available. Both
eth_getTransactionByHash
and
eth_getRawTransactionByHash
recognize preconfirmed transactions, which makes the transaction hash useful while the block is still under construction. Applications that retain records by block hash can distinguish that provisional response from the later sealed record.
Why can a UniFi receipt contain logs that queries omit?
UniFi includes preconfirmed logs in transaction receipts, while log queries and subscriptions expose sealed blocks only.
The
eth_getLogs
method returns logs from sealed blocks only.
The same boundary applies to
eth_newFilter
,
eth_getFilterChanges
,
eth_getFilterLogs
and
logs
subscriptions through
eth_subscribe
. An empty query during this interval cannot establish that the receipted transaction emitted no events.
The receipt's
logs
field can already carry the events, with a real
blockNumber
and
transactionIndex
. Its
blockHash
follows the same zero-hash convention before sealing. Systems consuming receipts can react to those provisional entries. Systems built around log queries or subscriptions encounter a delay of up to one block. These consumers need different timing expectations despite observing the same transaction.
Sealed references for proofs and pinned state
Explicit block positions keep state requests on the sealed view, and proof queries remain sealed even when a client asks for
latest
. For state-oriented methods,
safe
,
finalized
, an explicit block number or a block hash select sealed state. These alternatives avoid the moving unsealed view associated with
latest
and
pending
. Any method given a block hash uses sealed data. An explicit block number or hash selects a specific block; safe and finalized select their corresponding sealed positions.
The
eth_getProof
method uses sealed state at every tag.
The unsealed block has no computed state root, so it cannot supply a proof for the transient state that
latest
state reads expose. Proofs can lag that view by up to one block. A newer state response and an older proof can consequently reflect different RPC surfaces.
Preconfirmation, sealing and Ethereum settlement
A preconfirmed receipt, a sealed block record and Ethereum settlement describe different conditions, so an application must choose the confirmation level appropriate to its use. Sealing supplies a completed block hash; it does not establish Ethereum finality. UniFi withdrawals illustrate the distinction. Their L2 execution precedes proof submission and verification on Ethereum, after which the withdrawal mechanism releases funds. An early L2 receipt therefore cannot establish that the Ethereum-side release has completed. A response labelled
latest
answers a question about the endpoint's state view, while a settlement requirement concerns a later condition.
Display updates and retained block records
An interface that combines contract values with event-derived data can display newer state beside an older event list during the preconfirmation window. That mismatch follows the method boundaries. Receipt-driven displays can present early execution feedback, while records organized around completed blocks require the sealed block hash. Neither display rule changes which backend must answer a consistent receipt-and-state pair. Each displayed claim needs a defined state or block view, even when its request uses the familiar
latest
tag.
Choose whether the integration needs immediate state visibility, a sealed event stream or an identified block record. That choice determines which RPC response can supply the required observation.
Pufferfi FAQ
Does eth_getBlockReceipts("pending") return preconfirmed receipts?
The pending form of eth_getBlockReceipts returns receipts from the unsealed block. The same method with latest, a block number or a block hash returns sealed receipts. By contrast, eth_getBlockByNumber("pending") returns the latest sealed block.
How does eth_getTransactionCount interpret pending on UniFi?
At pending, eth_getTransactionCount uses the greater of the account's pool nonce and its unsealed-state nonce. The pending response can therefore include the pool's contribution as well as fragment execution. At latest, the method reads the unsealed state; safe, finalized, a block number and a block hash use sealed state.
Is eth_createAccessList based on the sealed head?
eth_createAccessList uses unsealed state when its request specifies latest or pending. The safe and finalized tags, an explicit block number or a block hash use sealed state.
Which state does eth_simulateV1 use at latest?
eth_simulateV1 uses the unsealed block as its base when requested at latest or pending. Its sealed forms use safe, finalized, a block number or a block hash. The starting state can therefore include receipted transactions that the latest block lookup has not yet shown.
Does eth_feeHistory include the unsealed UniFi block?
eth_feeHistory extends only through the sealed head. Preconfirmed activity can appear in state reads or receipts while remaining outside that fee-history response. The method's history boundary follows sealed blocks, so an integration should not assume its newest state view and newest fee-history entry describe the same block.
Do transaction lookups by block position expose preconfirmed entries?
eth_getTransactionByBlockNumberAndIndex reads transactions from the sealed block view. A lookup by transaction hash through eth_getTransactionByHash is preconfirmation-aware. The two methods can differ during block construction. A populated transactionIndex on an early receipt does not make its transaction immediately available through the sealed block-position lookup.
Can eth_estimateGas see state changes before a UniFi block seals?
eth_estimateGas uses the unsealed view at latest and pending, so its calculation can see preconfirmed state changes. Requests using safe, finalized, an explicit block number or a block hash use sealed state. Gas estimation follows the state-query surface, even when eth_blockNumber continues to report the preceding sealed head.