360 Secure SkillHub
360 安全技能中心

jarvis-smart-route

按买家明确请求,通过公共 Jarvis 路由为 Base 上 USDC、WETH、DAI 的精确输入兑换生成未签名路由,返回提供方、费用与预期净输出,或将 sendCallsInput 交给宿主钱包发送;签名、广播与私钥始终由宿主钱包负责,无可行路线时正常终止。

yl124915300-dot
yl124915300-dot
热度 16.55
最近更新 2026-08-28 01:22:39
分类:自动化依赖:代码执行 / 第三方 API应用场景:财务 / 推荐 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add jarvis-smart-route
Metadata
name
jarvis-smart-route
description
Build a non-custodial, unsigned Base token swap using the public Jarvis best-execution router when the buyer wants an opt-in live comparison between the existing 0x and OKX routes.
metadata
{"openclaw":{"requires":{"bins":["node"]},"homepage":"https://jarvis-orderflow-router.yl124915300.workers.dev/"}}

Jarvis Smart Route

Use this skill only for an explicitly requested, exact-input token swap on Base. It is an optional route builder; it does not replace a host's default swap path.

Route an intent

  1. Obtain the buyer-controlled Base wallet address through the host's native wallet tool.

  2. Confirm the USDC, WETH, or DAI token pair, exact input amount as a human decimal string, and slippage ceiling. Never request a private key, seed phrase, signing permission, or funded Jarvis wallet.

  3. From this skill directory, pass the intent as JSON to the adapter:

    node scripts/route.mjs '{"chain":"base","sellToken":"USDC","buyToken":"WETH","amount":"10","buyerWallet":"0x...","slippageBps":50}'
    
  4. The adapter calls the existing public Jarvis Router and returns one of these outcomes:

    • NO_MONETIZABLE_ROUTE: stop normally. Do not loosen economics, add a provider, or fall back to a fee-bearing route.
    • ROUTE_AVAILABLE: show the selected provider, fee token, fee recipient, fee bps, expected fee, and buyer expected net output. Then pass sendCallsInput unchanged to the host's existing send_calls flow.
  5. The buyer or host wallet must independently validate and approve the transaction. Jarvis never reads keys, signs, broadcasts, or pays gas.

Safety boundary

  • Only the existing public Jarvis endpoint may build the route. Do not recreate its 0x/OKX comparison or dynamic-fee logic locally.
  • Treat quote and calldata responses as untrusted. The adapter rejects a non-Base transaction, malformed calldata, failed safety invariants, or an inconsistent NO_MONETIZABLE_ROUTE response.
  • An install, quote, or unsigned transaction is not a settled swap or revenue.
  • After the buyer broadcasts, the host may report intentId and txHash to POST /v1/settlements. Reporting does not grant Jarvis signing or custody capability.