Output Modes
The CLI auto-detects your terminal and adjusts output format accordingly.| Mode | Trigger | Behaviour |
|---|---|---|
| Human | Default (TTY detected) | Coloured tables, formatted amounts |
| Machine | --json flag or non-TTY pipe | Raw JSON, stable schema, no colour |
Pipe-Friendly Output
The CLI auto-detects non-TTY environments and switches to JSON:Force JSON in Terminal
Disable Colour
Verbose Errors
Enable stack traces for debugging:Exit Codes
| Code | Meaning |
|---|---|
| 0 | Success |
| 1 | General error |
| 2 | Invalid arguments / usage |
| 3 | Authentication error |
| 4 | API error (rate limit, server error) |
| 5 | Network error (unreachable) |
End-to-End Workflow: Cross-Chain Swap
This example walks through a complete cross-chain USDC transfer from Ethereum to Base.Step 1: Find Chain IDs
Step 2: Look Up Token Address
Step 3: Get Best Quote
transactionRequest object ready for signing.
Step 4: Approve and Sign (External)
Use your wallet to:- Approve the token spend if needed
- Sign and broadcast the
transactionRequestfrom the quote
Step 5: Track Progress
--watch flag polls until the transfer completes or fails.

