build_contract
Compile Soroban smart contracts with the Stellar CLI and receive structured diagnostics (file, line, code, message) instead of raw rustc text.
Instructions
Builds a Soroban smart contract project using the Stellar CLI. Returns structured compiler diagnostics (file, line, error code, message) — not raw rustc text.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| network | No | Target network for the build | testnet |
| project_path | Yes | Absolute or relative path to the Soroban contract project directory (contains Cargo.toml) |