Skip to main content
Use the payments agent skill to add light-token payment support to your project:
Add the marketplace and install:
/plugin marketplace add Lightprotocol/skills
/plugin install solana-rent-free-dev
For orchestration, install the general skill:
npx skills add https://zkcompression.com

RPC infrastructure

Light Token requires a Photon-compatible RPC endpoint for cold account lookups and balance queries.
ProviderPhoton supportNotes
HeliusYesRecommended. Maintains the Photon indexer.
TritonYesAlternative provider.

Transaction landing

Light Token transactions follow standard Solana patterns for landing:
  • Priority fees: Use ComputeBudgetProgram.setComputeUnitPrice() to increase transaction priority. See Solana priority fees.
  • Compute units: Set appropriate compute unit limits with ComputeBudgetProgram.setComputeUnitLimit().
  • Retry logic: Implement retries with fresh blockhashes for failed transactions.

Confirmation levels

LevelWhen to use
processedFastest. Use for UI updates. Not guaranteed to finalize.
confirmedRecommended for most payment flows. Confirmed by supermajority of validators.
finalizedHighest certainty. Use for high-value transfers or irreversible actions.

Error handling

Handle both standard Solana errors and Light Token-specific scenarios:
  • Cold account load failures: Retry the load if the indexer returns stale data.
  • Associated token account creation: Idempotent — safe to retry.
  • Rent top-up failures: Ensure the fee payer has sufficient SOL balance. See gasless transactions for cost breakdown.
  • Transaction size limits: If TransactionInstruction[][] returns multiple batches, process them sequentially.

Fee sponsorship

Set your application as the fee payer so users never interact with SOL:
  1. Rent top-ups and transaction fees: Set payer parameter on Light Token instructions. See gasless transactions.
  2. Rent sponsor funding: Ensure the rent sponsor PDA is funded. See the cost breakdown for required amounts.

Pre-launch checklist

  • Photon-compatible RPC endpoint configured and tested
  • Fee payer wallet funded with sufficient SOL
  • Error handling covers load failures, tx size limits, and retries
  • Confirmation level appropriate for your use case
  • Address verification implemented
  • Wrap/unwrap flows tested for SPL / Token 2022 interoperability (if applicable)

Didn’t find what you were looking for?

Reach out! Telegram | email | Discord