Blocks reference
31 blocks in six families, each with typed ports and a precise effect on chain.
Triggers
Where a flow starts.
Link opened
Starts when someone opens the app's URL.
In: none. Out: opened (event).
On chain: No transaction. The hosted app at /a/<slug> renders its first screen.
Wallet connected
The visitor connects Phantom, Solflare or Backpack and derives their Ring key with one signature.
In: when (event, optional). Out: connected (event), wallet (person).
On chain: One off-chain message signature. Its SHA-256 is the Ed25519 seed of the visitor's Ring key for this app, derived in the browser and never sent anywhere.
Form submitted
Starts when the visitor submits the fields wired into it.
In: fields (text), after (event, optional). Out: submitted (event), payload (text).
On chain: No transaction. The field values stay in the visitor's browser unless a later block sends them.
Payment received
Starts for each private payment that reached the owner's Ring, read in the owner's dashboard.
In: none. Out: received (event), amount (money), payer (person).
On chain: Reads the owner's encrypted notes from the Privacy Rings indexer and decrypts them in the owner's browser with the viewing key.
Schedule
A run the owner starts on a date. Nothing pulls money by itself.
In: none. Out: due (event).
On chain: No transaction until the owner opens the dashboard on or after the date and signs the run.
Inputs
What the visitor or the owner enters.
Amount field
An amount, fixed by the owner or typed by the visitor, in hSOL, SOL or USDC.
In: asset (text, optional). Out: amount (money).
On chain: No transaction. Converted to base units with the asset's decimals.
Recipient list
Wallet addresses and amounts, pasted or loaded from a CSV.
In: none. Out: rows (list).
On chain: No transaction. Each row is checked as a Solana address before the run.
Text field
A line of text the visitor types: a name, an invoice number, a link.
In: none. Out: value (text), as number (number).
On chain: No transaction. Wire it into a memo and it travels encrypted with the transfer.
Asset picker
Lets the visitor choose which asset to pay with.
In: none. Out: mint (text).
On chain: No transaction. Outputs the chosen mint.
Gates
Rules a wallet must pass before the money moves.
Holds a token
Passes only if the wallet holds at least a minimum of one SPL or Token-2022 mint.
In: check (event), wallet (person). Out: passed (event).
On chain: Reads the wallet's token accounts for the mint (SPL Token and Token-2022) at the moment of the check.
Allowlist
Passes only wallets on a list the owner wrote.
In: check (event), wallet (person). Out: passed (event).
On chain: No transaction. The list ships inside the published graph and its hash is anchored.
Passcode
Passes when the visitor types the code you share privately.
In: check (event), typed (text, optional). Out: passed (event).
On chain: No transaction. Only the SHA-256 of the code is stored in the graph.
Date window
Passes between two dates, in UTC.
In: check (event). Out: passed (event).
On chain: No transaction. Checked against the Solana cluster time of the latest slot.
Once per wallet
Passes the first time a wallet comes through, then refuses it.
In: check (event), wallet (person). Out: first time (event).
On chain: No transaction. The wallet signs a claim message; Ringforge records the address against this app.
Money
Shield, transfer, split, swap and unshield.
Private transfer
Moves an amount from one Ring to another. Asset, amount and memo are encrypted.
In: run (event), amount (money, optional), to (person, optional), rows (list, optional), memo (text, optional). Out: sent (event), transaction (text).
On chain: A Privacy Rings transact on the Default Ring: one Groth16 proof, verified by program ring1GaLC…ANW. With a list, up to 15 recipients per proof.
Split by percent
Cuts an amount into shares that must add up to 100.
In: amount (money). Out: shares (list).
On chain: No transaction by itself. Feeds a Private transfer with one row per share.
Split equally
Divides an amount evenly between the people in a list.
In: amount (money), people (list). Out: shares (list).
On chain: No transaction by itself. Rounds down to base units; the remainder stays in the sender's Ring.
Shield
Deposits a public balance into a Ring. Needs no proof.
In: run (event), amount (money), into (person, optional). Out: shielded (event), amount (money).
On chain: A Privacy Rings deposit (buildDepositTransaction) signed by the wallet. SOL goes to the SOL interface PDA, SPL tokens to their ring vault.
Unshield
Withdraws from a Ring to a public wallet.
In: run (event), amount (money), to (person, optional). Out: withdrawn (event).
On chain: A Privacy Rings withdrawal (buildWithdrawalTransaction) with one Groth16 proof.
Swap through Jupiter
Swaps a public balance on Jupiter's best route.
In: run (event), amount (money). Out: swapped (event), received (money).
On chain: A Jupiter swap transaction (lite-api.jup.ag /quote then /swap), signed by the wallet.
Convert to hSOL
Turns SOL into hSOL, Helius staked SOL, through Jupiter.
In: run (event), SOL (money). Out: converted (event), hSOL (money).
On chain: A Jupiter route from SOL to mint he1ius…n9A, signed by the wallet. hSOL accrues staking rewards and swaps back with no cool-down.
Disclosure
Receipts and viewing keys, shared on purpose.
Receipt
A receipt link for the payer and the owner, pointing at the confirmed private transfer.
In: after (event), transaction (text). Out: ready (event), receipt (text).
On chain: No transaction. Links the confirmed transfer: its addresses and time are public, its asset and amount stay encrypted. Sharing a per-transfer viewing key comes with the next SDK release.
Share viewing key with an auditor
Gives an auditor read access to this app's Ring. Read only: it cannot spend.
In: after (event), auditor (person, optional). Out: shared (event), grant (text).
On chain: Encrypts the Ring's viewing key to the auditor's wallet in the owner's browser. The auditor decrypts it with one signature.
Statement
A dated statement of every private payment in the Ring for a period, decrypted locally.
In: after (event). Out: statement (text).
On chain: Reads encrypted notes from the indexer and decrypts them in the owner's browser. Exports CSV.
Outputs
The screens people see.
Checkout page
A product, a price and a Pay button.
In: show (event), price (money, optional), fields (text, optional). Out: pay (event).
On chain: No transaction by itself. Pay starts the next block.
Payment link
A shareable link with an amount, a QR and a Pay button. Can repeat monthly, paid by link, never pulled.
In: show (event), amount (money, optional). Out: pay (event).
On chain: No transaction by itself. The visitor signs each payment.
Claim page
Visitors claim; the owner pays every approved claim privately in one signing session.
In: show (event), claimer (person, optional). Out: claimed (event), claims (list).
On chain: The visitor signs a claim message (no transaction). The owner's payout session sends private transfers, 15 recipients per proof.
Payroll table
The owner reviews every row, then approves the whole run with one signing session.
In: show (event), rows (list). Out: approved (event), rows (list).
On chain: No transaction by itself. Approve starts the private transfer that follows.
Tip page
Suggested tips, a custom amount, and your name at the top.
In: show (event). Out: tip (event), amount (money).
On chain: No transaction by itself.
Webhook
POSTs the step, the app and the transaction signature to your URL. Never an amount.
In: after (event), payload (text, optional). Out: sent (event).
On chain: No transaction. Ringforge's server sends the POST after the signature confirms.
Confirmation screen
The last screen: a message, the receipt, no email asked.
In: show (event), receipt (text, optional). Out: none.
On chain: No transaction.