Docs Técnicas
Choose Your Path
The TREA Book is both a guided learning resource and a complete reference. You do not need to read every page in order. Choose the path that matches the result you need.
The TREA Book is both a guided learning resource and a complete reference. You do not need to read every page in order. Choose the path that matches the result you need.
Write Your First TREA Contract
Outcome: compile, run, publish, and call a small contract, then inspect its receipt.
- What Is TREA?
- A Simple Contract
- Compile And Run Locally
- Publish And Call Through AtlasDB
- TREA Dev Chain Runner
- Simulation (Dry-Run)
- Execution Receipts
Continue with Source Layout when you need the complete language model.
Integrate External Infrastructure
Outcome: observe chain state, authenticate a request, simulate it, submit a transaction, and consume the persisted result safely.
- External Infrastructure Quickstart
- REST Submission
- Simulation (Dry-Run)
- Execution Receipts
- Operational Interoperability
- Error And Diagnostic Surfaces
Use this path for gateways, oracle networks, custodians, payment processors, indexers, and other systems that operate outside consensus.
Build And Test A Product
Outcome: develop a production-shaped contract with repeatable local tests.
- TREA CLI
- TREA Dev Chain Runner
- TREA JS Test Runner
- Testing Contracts
- Authoring Checklist
- Common Pitfalls
The Examples and Contract Library sections are patterns to consult as needed, not prerequisites to read sequentially.
Review Runtime And Ledger Internals
Outcome: understand how source becomes deterministic execution and how effects become committed ledger state.
- Parser And Verifier
- IR And Runtime
- Storage Encoding
- Cost Model
- Accounting Safety
Use The Reference
The Reference section is lookup material. Go directly to syntax, intrinsics, transaction payloads, or error codes when implementing tooling and clients.