settle — high-level
Thesettle function handles the entire settlement flow end-to-end: builds the instruction, fetches the Light Protocol proof, creates a VersionedTransaction with the ALT, signs, sends, confirms, and parses events.
paymentSettled).
buildVerifyAndSettleIx — low-level
When you need the raw instruction to combine with other instructions in a custom transaction, use the low-level builder. Returns{ computeBudgetIx, instruction, lightParams }.
Settlement modes
- Atomic
- Attestation
- Delegated
The payer’s tokens are transferred on-chain via CPI during the settlement transaction. The protocol fee is deducted and sent to the treasury automatically.
Address lookup table
Settlement transactions reference many accounts (Light Protocol CPI, token program, config PDA, etc.). An address lookup table (ALT) keepsVersionedTransaction size within Solana’s 1232-byte limit.
The ALT contains 16 static accounts:
The ALT is created once per network deployment and reused across all settlement transactions. Its address is stored in the
NetworkConfig as lightAlt.