Jupiter routing

From swcstudiospace/PumpGrok · View interactive version

Jupiter routing is an AI agent skill from the GitHub repository swcstudiospace/PumpGrok. Primary execution path for PumpGrok. Obtain the best route via Jupiter. Set slippage and priority fees, verify exact parameters against the approved ticket, and prepare a single-send transaction. Used only by SNIPER and EXIT.

How to use this skill

Skill file

Jupiter Routing

L1 - Summary

Quote-only route preparation for the single approved buy (SNIPER) or sell (EXIT). Resolves the best Jupiter route for the exact ticket parameters through GET https://api.jup.ag/swap/v2/order, then hands the route to exec.quote and exec.place. This skill never executes, never signs, and never treats the quote as the fill price.

L2 - Method

  1. Take the APPROVED ticket parameters only: input mint, output mint, amount (lamports), max slippage bps. Refuse when the ticket is not APPROVED or RISK verdict is not CLEAR (CONDITIONAL conditions met counts as CLEAR only for the listed conditions).
  2. Request a quote-only route: GET https://api.jup.ag/swap/v2/order with inputMint, outputMint, amount, slippageBps. Send the key as x-api-key from JUPITER_API_KEY. Never send taker. Never call /execute, /build, or /submit.
  3. Treat the response as informational. Map priceImpact (percentage points) to a ratio by dividing by 100. The quote is never the fill price (R38).
  4. Estimate the priority fee with onchain.priority_fee, capped by the max_micro_lamports field so a spike cannot drain the wallet. The quote is informational (route plus priority); only exec.place fills.
  5. Hand the prepared route to exec.quote (simulate) and then exec.place (paper fill). On any timeout or unknown result, stop and report UNKNOWN RESULT - reconcile by signature. Never retry without a new human approval.

Failure modes

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.