Open-source transaction inspection and debugging infrastructure for Stellar smart contracts.
SorobanTrace helps developers understand what happened during a Stellar smart-contract transaction by decoding transaction XDR, contract events, diagnostic events, authorization entries, resource usage and ledger changes.
The core question it answers:
"Why did my Soroban transaction do this?"
- Transaction Inspection: Decode and analyze Stellar transactions
- Diagnostic Engine: Human-readable explanations of errors and issues
- Resource Analysis: CPU, memory, and fee usage breakdown
- Storage Tracking: Ledger entry reads and modifications
- Event Analysis: Contract and system event decoding
- Error Explanations: What happened, why, and what to investigate
Raw transaction (hash or XDR)
↓
Stellar RPC
↓
XDR Decoder
↓
Trace Engine
↓
Diagnostic Engine
↓
Human-readable diagnosis
sorobantrace/
├── crates/
│ ├── core/ # Domain models and error types
│ ├── xdr/ # XDR encoding/decoding
│ ├── decoder/ # Transaction decoding pipeline
│ ├── simulator/ # Stellar RPC client
│ └── inspector/ # Transaction inspection and diagnostics
│
├── cli/ # Command-line interface
├── fixtures/ # Test data
├── docs/ # Documentation
├── tests/ # Integration tests
└── examples/ # Example usage
cargo buildcargo test# Inspect a transaction
sorobantrace tx <TX_HASH>
# Explain an error
sorobantrace explain "HostError: InvalidAction"- ARCHITECTURE.md - System design and components
- ENGINEERING_PRINCIPLES.md - Code standards and practices
- CONTRIBUTING.md - How to contribute
- CONTRIBUTOR_ROADMAP.md - Development roadmap
- PROVENANCE.md - Project origin and history
- SECURITY.md - Security policy
- CODE_OF_CONDUCT.md - Community standards
- Rust 1.75+
- Cargo
cargo buildcargo testcargo check
cargo clippy
cargo fmtSee CONTRIBUTING.md for detailed guidelines.
Check out issues labeled good first issue for beginner-friendly tasks.
- Trivial: 1-2 hours
- Medium: 4-8 hours
- High: 1-2 days
Licensed under either of:
- Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
- MIT License (LICENSE-MIT or http://opensource.org/licenses/MIT)
at your option.
Built for the Stellar/Soroban developer ecosystem.