version, from, chainId and ordered calls[]. Each call has to, data and a decimal wei value. The current lending paths return zero value. Do not replace targets or reconstruct calldata from these examples.
The API checks current chain state before building calls. Those checks cannot guarantee execution: balances, prices and liquidity may change before a transaction is mined. Request fresh calls if the user delays signing.
- Verify that the connected account matches
fromand is on Base Mainnet, chain ID8453or0x2105. - Show the action, assets, approvals and risks to the user. Confirm gas and token balances.
- Honor all returned capabilities and atomicity requirements. Preserve attribution suffixes if provided. Do not strip required fields to make a wallet accept the plan.
- Wait for successful execution, stop on failure and refresh positions. An API response alone is not a completed deposit, withdrawal or borrow.
Batch-Capable Wallet
With viem, pass any required capabilities and atomicity flag through. The connected wallet must support the plan; do not silently fall back to sequential transactions for an atomic plan.Batch-capable wallet (viem)
Sequential EOA Execution
The lend flows can execute returned calls sequentially when no atomic capability is required. Wait for each successful receipt before sending the next. If the plan requires atomic execution, or contains capabilities this fallback does not implement, stop and use a compatible wallet.EOA, sequential (viem)
value to a hex quantity; viem accepts a bigint.