Recta Preflight
v1.0.0Free check before a cross-chain USDC/USDT transfer: total cost, arrival time, proven cheaper route
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
recta_preflight Preflight before a cross-chain transfer: cost, arrival and saving (free, no signature)
Call 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, const…
| Parameter | Type | Description |
|---|---|---|
amount * | string | 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. |
destination_asset * | string | |
destination_network * | string | |
source_asset * | string | Uppercase asset, e.g. USDC. |
source_network * | string | Lowercase network as in the service descriptor, e.g. base, ethereum, arbitrum. |
baseline_provider | string | 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… |
body | object | Alternative to the fields above: the whole evaluation request body (from recta_request_template), as a JSON object. |
recipient | string | Optional: the receiving address. |
sender | string | Optional: your own sending address, for the most exact figure. |
recta_fit_check Is my transfer covered? (free, no signature)
Call first, before a cross-chain stablecoin transfer: whether Recta covers the corridor, which routes it compares, which route you can declare as yours, and the contracts a route would touch. Unsigned, free, never reveals a route or a saving.
| Parameter | Type | Description |
|---|---|---|
destination_asset * | string | |
destination_network * | string | |
source_asset * | string | Uppercase asset, e.g. USDC. |
source_network * | string | Lowercase network as in the service descriptor, e.g. base, ethereum, arbitrum. |
recta_request_template The whole evaluation request for my transfer (free, no signature)
Returns the full body of the evaluation request for a corridor, an amount and the route you would use anyway (baseline_provider): you fill only your sender, recipient and gas ceilings, then sign it with recta_prepare_signed_request and recta_send_signed_request.
| Parameter | Type | Description |
|---|---|---|
amount * | string | 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. |
baseline_provider * | string | The route you would use without Recta (see recta_fit_check's declarable_baselines). |
destination_asset * | string | |
destination_network * | string | |
source_asset * | string | Uppercase asset, e.g. USDC. |
source_network * | string | Lowercase network as in the service descriptor, e.g. base, ethereum, arbitrum. |
guarantee_class | string | |
latency_class | string |
recta_prepare_signed_request Text to sign for a Recta request
Step 1 of a free quote for a cross-chain transfer. Computes the exact message the agent's EVM wallet must sign (EIP-191 personal_sign) for one Recta request, and the headers to send. Holds no key and calls nothing. Then call recta_send_signed_request with the same method, path, idempotency_key, body and issued_at, plus the signature. Start with POST /v1/golden-corridor/commercial-evaluations (body: recta_request_template; its "sender" must be the signing address). If you have no wallet tool that can personal_sign, this server cannot sign for you: No signing code needed: the npm package @recta/…
| Parameter | Type | Description |
|---|---|---|
method * | ||
path * | string | A signed route: /v1/golden-corridor/commercial-evaluations[/{result_id}[/execution-artifact|/fee-authorization|/execution]], /v1/golden-corridor/commercial-accruals/{payer} or /v1/golden-corridor/fee-… |
body | string | The exact JSON body text, byte for byte as it will be sent. Empty for GET. |
idempotency_key | string | Required by POST /v1/golden-corridor/commercial-evaluations. |
recta_send_signed_request Send a signed request to Recta
Step 2: sends the request signed by the agent's own wallet to a Recta route and returns its HTTP status and JSON body. POST /v1/golden-corridor/commercial-evaluations returns, free, a decision (whether a cheaper route than the one the agent would use anyway is proven, and the saving) or an abstention; GET /v1/golden-corridor/commercial-evaluations/{result_id}/execution-artifact then asks for the fee ceiling's signature and, once it is signed, returns the route's transactions. Executing a decision's route creates a fee of 5 % of the verified saving, capped by the permit the agent signs; no savi…
| Parameter | Type | Description |
|---|---|---|
issued_at * | integer | |
method * | ||
path * | string | |
signature * | string | |
signer * | string | |
body | string | |
idempotency_key | string |