Last updated

Post-Pack Confirmations

Rakurai Pre-confirmation named as Post-pack confirmations (P2C) provides you a front-run-proof early view of what is about to execute. It is the third TIN building block: the Rakurai scheduler streams each transaction to you at the point of no return — committed to the block being built, but not yet public.

Paying for it has two ordered halves. You prepay for access through a PSA, priced from the validator's stake, then share a percentage of the profit you make from the stream through an MCA. Tips are a separate path and still apply to your reply bundles.

This page covers what the stream is, the wire protocol it uses, the end-to-end sequence from onboarding to settlement, and how the three money paths differ.

Audience: Searchers, TIN partners, traders consuming post-pack confirmations, and validator operators configuring endpoints.


1. What are post-pack confirmations?

As soon as a transaction has been scheduled for execution, the Rakurai scheduler forwards it over gRPC to every configured post-pack confirmation endpoint — one packet per transaction, per endpoint.

Updates start at the point of no return

Updates are generated from the point of no return — the moment the transaction is committed to the block being built. Consumers therefore see a transaction only when it is too late for anyone to front-run it, which is what makes it safe to publish. A post-pack signal is an early scheduled update, not a confirmation: confirm landing through standard commitment checks before treating it as final.

1.1. Protocol

Post-pack uses the Jito packet gRPC protocol (packet.proto, block_engine.proto) — the same Packet / PacketBatch / StartExpiringPacketStream shapes used by the Jito relayer. If you already consume the Jito relayer stream, the wire format is familiar.

  • What you receive: transactions as Jito Packet messages carrying raw Solana wire bytes, streamed over StartExpiringPacketStream. Duplicate transactions are suppressed, and one Packet is sent per transaction per endpoint.
  • What you send back: a bundle containing the original post-pack packet(s) unchanged, followed by any transactions of your own (typically a backrun or arbitrage).

Full mechanics, packet layout, and Admin RPC: Using P2C.

1.2. End-to-end sequence

you register a gRPC endpoint with Rakurai       → Setup guide
        ↓
Rakurai creates your PSA (and MCA if sharing)   → PSA / MCA
        ↓
you fund the PSA                                → rakurai-p2c fund
        ↓
validator connects out to your Relayer server   → Using P2C
        ↓
scheduler streams PacketBatchUpdate at the
point of no return
        ↓
you decode, decide, and reply with a bundle
(original packets + your txs + a tip)           → Tips
        ↓
epoch ends → PSA fee deducted from prepaid
          → you report and settle MCA           → rakurai-revshare
Still tip on reply bundles

Paying a tip to land a transaction is a different path from the PSA and MCA. A post-pack reply bundle still needs a tip to a Rakurai tip account so it gets prioritized — recommended: 1,000,000 lamports (0.001 SOL). See Tips.


2. The three payments, side by side

Post-pack touches three money paths and they are easy to confuse. PSA and MCA are ordered — access first, profit share second. Tips are independent of both.

PSAMCATips (TCA)
Full nameP2C Subscription AccountMevShare Collection AccountTips Collection Account
What it buysAccess to the streamNothing — it is a payout you owePriority for one transaction or bundle
DirectionYou prepay; the fee is deducted each epochYou send your agreed share after the epochYou transfer at send time
Priced byThe validator's staked SOLYour agreed percentage of backrun profitWhatever you choose to tip
Required?Yes, for post-pack at allYes, once you backrun and shareOptional, but recommended
Toolrakurai-p2crakurai-revsharePlain SystemProgram.transfer
GuidePSAMCATips
PSA first, then MCA

The MCA only applies after you already have stream access, because it shares profit you made from that stream. You cannot skip the PSA and go straight to the MCA.

Endpoints — where the scheduler sends you transactions — are stored separately in Client Config. The PSA holds prepaid SOL; the MCA holds settled backrun SOL. Neither holds endpoint configuration.

Do not count the same SOL twice

If block_reward_conversion_enabled is on (the default), PSA, MCA, and TCA claims are later re-emitted as a high-priority block reward. An indexer watching both will count the same lamports twice. See TIN — indexing note.


3. Next steps

GuideDescription
Using P2CRelayer gRPC setup, packet structure, reply bundles, validator Admin RPC
PSAPrepaid stream access: pricing, status, grace window, funding
MCAReporting and settling your backrun share
TipsTip accounts and virtual priority for landing
Setup guideDiscovery endpoint and Validator vs Relayer gRPC roles
Reward DistributionThe on-chain model behind PSA, MCA, and TCA