Building Onchain Workflows with LI FI Composer
summary
Composer compiles declarative flows into one atomic on‑chain transaction, taking a declarative JSON DSL or TypeScript SDK output and returning a ready tx plus required approvals and dangling resources. It pre-simulates outputs gas and failures, deploys a per‑signer user proxy, and executes via delegatecall into LI.FI’s on‑chain VM. API surface is /compose plus manifest and zaps routes authenticated by an API key at portal.li.fi. Hackathon preview demonstrates cross‑venue migration (Aave V3 → Morpho) with materializers that abstract ERC‑3156 and Balancer V2 flash loans; 30+ example flows and an llms.txt are provided.
AI-written summary · about
chapters (29)
- 0:00Introduction
- 0:11Meet Leo and Composer
- 0:42How the Declarative JSON Flow Works
- 0:58Pre-Simulating Outputs, Gas, and Failures
- 1:08The Multi-Transaction Pain Point
- 1:36Why Multicall Falls Short
- 2:03The JSON Specification and Embedded DSL
- 2:30A Simple Swap and Zap Flow
- 2:50Declaring Your Inputs
- 3:18The Nodes That Transform Resources
- 3:42Using Guards for Minimum Amounts
- 4:04The User Proxy Account Model
- 4:27Execution via Delegate Call
- 4:37The API Surface and Endpoints
- 4:51Authentication and the API Key
- 5:21What the Compilation Response Returns
- 5:41Exposing Dangling Resources
- 5:53New Operations for the Hackathon
- 6:11The Cross-Venue Migration Demo
- 6:49Abstracting Flash Loans With Materializers
- 7:09The Three Beats of a Migration
- 7:30The Preview Deployment and Supported Protocols
- 7:56Pointing Your Agents to llms.txt
- 8:22The Repo of 30+ Examples
- 8:44What You Can Build With Composer
- 9:19Q&A: Targeting Any Smart Contract
- 11:01Q&A: Partners and Chain Availability
- 11:39Q&A: Third-Party Contract Whitelisting
- 12:00Closing
related talks
13mSolving Ethereum’s Multi Chain Fragmentation With a Single API
07mFlow Bounties & Builder Support Deep Dive
18mFlow Workshop - Fast Track Your Onchain App
23mFlow Workshop Fast Track Your Onchain App
24mBuild your first workflow with CRE
01h 38mBuilding a DeFi App: Code along
21mFilecoin Workshop
29mBuilding Onchain in the Age of Agency With BuidlGuidl
