DeFi intents
Bloom exposes DeFi routing under /bloom/defi/intents/<wallet>/. The current implementation uses Enso Shortcuts.
Natural-language flow
echo 'swap 100 usdc to eth on ethereum' > /bloom/defi/intents/alice/new
ls /bloom/defi/intents/alice
cat /bloom/defi/intents/alice/<session>/plan.md
cat /bloom/defi/intents/alice/<session>/route.jsonA session may include:
intent.txt— the original request;route.json— provider route details;plan.md— human-readable plan;tx.json— transaction payload;simulation.json— dry-run output when available;confirm— writable control file to stage into the wallet outbox.
Approvals
When an ERC-20 input token lacks enough allowance, Bloom stages an approve(spender, max) intent before the swap. Both transactions must be reviewed before broadcast.
Configuration
DeFi intents require an [enso] block in config.toml and an Enso API key via BLOOM_ENSO_KEY or ENSO_API_KEY. Without a key, the client returns a clear missing-key error.
Slippage
Default slippage is 50 bps and can be overridden per request.