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.

Tier 1 is the fastest way to understand why a transaction failed. Prism takes the transaction result XDR and performs a multi-step enrichment process.

How it works

  1. Classification: Prism extracts the TransactionResult and identifies the specific error code.
  2. Taxonomy Lookup: It maps the code to our Error Taxonomy, which contains detailed explanations for every host error.
  3. Contract Resolution: If the error is a custom contract error (Error(Contract, #N)), Prism:
    • Fetches the contract’s WASM bytecode from the ledger.
    • Parses the contractspecv0 custom section.
    • Cross-references the error index with the defined enum names and doc comments.

Contract-Specific Metadata

Prism resolves #3 into InsufficientBalance because it understands the contract’s metadata structure. This turns a generic number into a business-logic error that you can fix instantly.