Preflight before a cross-chain transfer: cost, arrival and saving (free, no signature)
recta_preflightCall before any cross-chain USDC/USDT transfer. Give the corridor and the amount (and, optionally, baseline_provider: the route you would use; without it Recta compares against lifi, LI.FI's own quote, or across where LI.FI does not apply). Returns, for your route, its estimated total cost in USDC and when it arrives; and, when Recta proves a cheaper route, the saving (a proven lower bound), Recta's 5 % fee, that route's total cost and arrival (the route itself is not named) and execute_via_recta: sign the same request to get the route. No wallet and no address needed (sender, recipient, constraints and gas ceilings are filled when absent and listed in assumed; your own sender gives the most exact figure). Stores nothing, charges nothing; 3 a day per IP address.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"source_network": "<source_network>",
"source_asset": "<source_asset>",
"destination_network": "<destination_network>",
"destination_asset": "<destination_asset>",
"amount": "<amount>"
},
"name": "recta_preflight"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | Alternative to the fields above: the whole evaluation request body (from recta_request_template), as a JSON object. | |
| amount | Yes | How much of source_asset to send, in whole tokens (not cents, not wei): "100" with USDC means 100 USDC. Minimum 3.5 for stablecoins (about 3.5 USD). No maximum. | |
| sender | No | Optional: your own sending address, for the most exact figure. | |
| recipient | No | Optional: the receiving address. | |
| source_asset | Yes | Uppercase asset, e.g. USDC. | |
| source_network | Yes | Lowercase network as in the service descriptor, e.g. base, ethereum, arbitrum. | |
| baseline_provider | No | Optional: the route you would use without Recta, e.g. lifi, across, stargate_v2, cctp_v2_standard (recta_fit_check lists the ones a corridor admits). Absent: lifi, or across where LI.FI does not apply. | |
| destination_asset | Yes | ||
| destination_network | Yes |