This is a reference for the verification API’s payload adapter. For apps you can use inside a Desk, see Desk apps.
venue: lifi. Over HTTP, liquest, jumper and lifiprotocol also resolve to it.
What to send
All three shapes are detected withoutvenue. All are in the swap family.
The summary decodes amounts from their decimals-scaled form, names the chains, and for a route shows the tool, the estimated output and the claimed minimum (
toAmountMin). The attached transactionRequest calldata is not decoded.
Live re-quote
The adapter asks LI.FI for a fresh quote for the same trade,GET https://li.quest/v1/quote, with the payload’s chains, tokens, amount, fromAddress and slippage. It adds the tool LI.FI would use now, the fresh estimate, the guaranteed minimum and their dollar values. For a route payload it compares the claimed toAmountMin with the fresh minimum:
- More than 2% above the fresh minimum: the route’s numbers are stale or overstated.
- More than 5% below: the route accepts that much more loss than the market needs.
fromAddress, which LI.FI requires. Without it, or when LI.FI returns no route, times out (7 seconds) or rate-limits the request, a note says the amounts are unverified and tells the judge to lean ESCALATE when your rules depend on the output. Results are cached for 60 seconds.
Notes the classifier adds
slippageis a fraction:0.005is 0.5%. Values above 0.01 are flagged, and values above 0.5 are outside LI.FI’s accepted range.- Amounts are integers in the token’s smallest unit. The classifier knows the decimals of USDC, USDT, DAI, WETH, ETH and WBTC, and of any token object that states them. Other tokens are shown raw until the re-quote names them.
- A
toAddressdifferent fromfromAddresssends the entire output to another wallet. - An integrator
fee,fromAmountForGas, amaxPriceImpactabove 10%, and a route with notoAmountMin.
Example
From an MCP client
Instruct the agent to callverify_intent before executing any LI.FI route, with your rules as intent, the exact request or route as action and venue: "lifi", and to act only on ALLOW.
