build_payment
Generate ready-to-sign EVM transactions and EIP-5792 atomic batch calls for zero-net-cost payments on Base. Automatically supplies collateral to Aave V3 or Morpho to recover principal plus fees.
Instructions
Generate ready-to-sign EVM transactions and EIP-5792 atomic batch calls for a zero-net-cost payment on Base (Chain ID 8453). Automatically supplies collateral into Aave V3 or Morpho to recover 100% of the principal + developer fee.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| amount | Yes | Amount of USDC to pay to the recipient (e.g. 25). | |
| buffer | No | Safety buffer percentage (defaults to 8). | |
| sender | Yes | Ethereum address of the payer executing the transactions (0x...). | |
| protocol | No | Yield protocol to use ('auto', 'aave', or 'morpho'). Defaults to 'auto'. | |
| recipient | Yes | Ethereum address of the recipient receiving the payment (0x...). | |
| collateral | No | Collateral multiplier (defaults to 20). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| chainId | Yes | Target EVM Chain ID (8453 for Base) | |
| success | Yes | True if transaction generation succeeded | |
| summary | Yes | Detailed financial summary of the zero-cost payment plan | |
| batchCalls | Yes | EIP-5792 atomic batch calls array for Smart Accounts and Agentic Wallets | |
| transactions | Yes | Ordered array of 4 sequential EVM transactions for standard wallets |