.aleo file and produces a JSON representation of the program’s interface.
Usage
Arguments
string
required
Path to the
.aleo bytecode fileOptions
string
default:"testnet"
Network for parsing. Valid values:
mainnet- Mainnet networktestnet- Testnet network (default)canary- Canary network
string
Output file path. If not specified, prints to stdout.
Examples
Generate ABI to stdout
Generate ABI to file
Generate ABI for mainnet
Output Format
The generated ABI is a JSON file describing the program’s interface:Use Cases
- Documentation - Generate API documentation for your program
- Integration - Provide ABI to frontend applications for integration
- Tooling - Build tools that interact with Leo programs
- Analysis - Analyze program interfaces and dependencies
Related Commands
Troubleshooting
File not found
Ensure the.aleo file path is correct and the file exists: