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
-
Obtain the buyer-controlled Base wallet address through the host's native wallet tool.
-
Confirm the
USDC,WETH, orDAItoken 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. -
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}' -
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 passsendCallsInputunchanged to the host's existingsend_callsflow.
-
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_ROUTEresponse. - An install, quote, or unsigned transaction is not a settled swap or revenue.
- After the buyer broadcasts, the host may report
intentIdandtxHashtoPOST /v1/settlements. Reporting does not grant Jarvis signing or custody capability.
