Record a landed intent
record_landedCloses a payment once the money arrived, on its remembered intent: what left (source currency) and what arrived (destination currency), and/or attach a stablecoin leg by chain and transaction hash, verified from the chain. SwapEazi measures it against the independent reference and against what was routed, and every later route on the pair carries it as a measured payment. On a recurring intent it closes the current cycle only and the series moves to its next due date. Amounts only, never names or account numbers.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tx | No | For a stablecoin leg: the transaction hash; read and priced from the chain and added to the payment record. | |
| sent | No | Amount that left, in the source currency. | |
| chain | No | For a stablecoin leg: base, ethereum, arbitrum, optimism, polygon or celo. | |
| landed | No | Amount that arrived, in the destination currency, after every deduction. | |
| provider | No | Defaults to the route selected on the last day. | |
| intent_id | Yes | The remembered intent to close (remembered.intent_id from route_intent). | |
| settled_at | No | YYYY-MM-DD |