One run, taken apart
What does the chain see when a holder runs Jupiter, Kamino Lend or Jito from a private balance?
- 01
Proof
Before anything is sent, a proof binds the run: the authority identity, the calls (a hash of each hook record and of its call data, up to two hooks, in order), the amount in, the minimum out, the output owner, the earliest time and the expiry. The program recomputes every one of these on chain. A proof made for any other value is refused with 6010 and nothing moves.
Public after this step Nothing yet
- 02
Spend
The program checks that the signer is a registered relayer (6022 otherwise) and that the clock is inside the window (6011, 6012). Then the shielded pool withdraws exactly the amount in from the holder's notes to the stage, signed by the program's authority PDA. The stage must hold exactly that much more afterwards.
Public after this step The asset and amount in
- 03
Call
Each hook's instruction is called exactly as its record describes: the recorded program, the recorded first bytes of data, the recorded accounts, with the stage PDA signing. The hook is handed the stage and the stage's output account for this one run, and none of Hidden1's own accounts.
Public after this step The hook and its program
- 04
Check
The program measures how much the stage's output account grew. The stage must still be a plain system account, its token accounts the stage's alone, and any route's middle account back where it started; otherwise the whole transaction fails and the notes stay unspent.
Public after this step The asset and amount out
- 05
Deposit
The program checks what the holder receives against the minimum in the proof, then deposits it, with anything left over from the input, into a new note for the output owner. Below the minimum, the whole run fails (6017) and nothing moves. The stage ends at its base.
Public after this step A new note, not its owner
The accounts in a run transaction
From program/src/instructions/run.rs. One key signs: the relayer. The holder's wallet is not an account in the transaction, and there is no field for it.
| # | Account | Flags | What it is |
|---|---|---|---|
| 0 | relayer | signer, writable | a registered relayer key, pays the network cost |
| 1 | config | read only | |
| 2 | relayer_record | read only | that key's registration |
| 3 | stage | writable | PDA ["stage"]: receives the withdrawal, signs the calls |
| 4 | out_account | writable | the last hook's output account |
| 5 | relayer's account | writable | the signing relayer's own account |
| 6 | out_mint | read only | the output mint (system program for SOL) |
| 7 | token_program | read only | (system program for SOL) |
| 8 | out_spl_interface | writable | the pool's vault for the output mint |
| 9 | sol_interface | writable | the pool's SOL vault |
| 10 | system_program | read only | |
| 11–14 | program vault accounts | writable | program vault accounts and their token accounts for the output mint |
| .. | one hook record per call, in call order | ||
| .. | the shielded pool's transact accounts, one withdrawal group last | ||
| .. | per call: the hook's accounts in record order (a record with per-run accounts: then that run's remaining accounts of the call, at most 64 in all), then its target program | ||
| – | holder wallet | absent | |
On mainnet
The latest House run on mainnet, run with house money and listed in the House run file: 4Ufku4Ta…rQSFNUAh, 2026-11-28 16:05 UTC. Checked here: a Hidden1 run signed by its relayer alone, 31 accounts. Open it on Solscan to see the same.