Soroban has strict resource limits. Optimizing your contract ensures it remains cheap and reliable.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.
Finding Hotspots
Useprism profile <hash> to identify the most expensive host functions in your transaction.
Common Hotspots
- Storage Reads: Frequent
get_ledger_entrycalls 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, useprism whatif to re-simulate the transaction with your new contract version to verify the budget reduction before redeploying.