Skip to main content

Documentation Index

Fetch the complete documentation index at: https://prism-ddf93e61.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Soroban has strict resource limits. Optimizing your contract ensures it remains cheap and reliable.

Finding Hotspots

Use prism profile <hash> to identify the most expensive host functions in your transaction.

Common Hotspots

  • Storage Reads: Frequent get_ledger_entry calls can quickly consume the budget.
  • Deep Invocations: Cross-contract calls add stack depth and context overhead.
  • WASM Size: Large contract binaries increase the CPU cost of the initial load.

Verification

After optimizing, use prism whatif to re-simulate the transaction with your new contract version to verify the budget reduction before redeploying.