TypeScript SDK for interacting with the SushiSwap Aggregator and related primitives. This SDK is a typed wrapper over the SushiSwap API, providing ergonomic helpers for token amounts, prices, quotes, and swap transaction generation. USE THIS SKILL WHEN: - Building TypeScript or JavaScript applications - You want strongly typed token, amount, and fraction primitives - You need to request swap quotes or executable swap transactions via code - You want safer arithmetic, formatting, and comparisons without floating point errors - You prefer SDK-based integration over raw HTTP requests
80
Quality
71%
Does it follow best practices?
Impact
95%
2.96xAverage score across 3 eval scenarios
Advisory
Suggest reviewing before use
Optimize this skill with Tessl
npx tessl skill review --optimize ./public/skills/0xmasayoshi/sushiswap-sdk/SKILL.mdThe SushiSwap SDK is a TypeScript wrapper around the SushiSwap API. It provides strongly typed primitives and utilities for working with tokens, prices, swap quotes, and transaction generation.
This SDK does not replace the API — it builds on top of it with safer, more expressive abstractions.
Install the required packages using your package manager of choice:
pnpm add sushi viemnpm add sushi viemyarn add sushi viembun add sushi viemsushi/evmgetQuote()getSwap()referrer valueThe SDK is a thin wrapper over the SushiSwap REST API — all routing, pricing, and calldata generation is still performed by the API.
The SushiSwap SDK exposes the list of supported swap networks via:
import { SWAP_API_SUPPORTED_CHAIN_IDS } from 'sushi/evm'This list reflects the networks currently supported by the SushiSwap Aggregator API. The supported networks may change over time and should not be cached indefinitely.
--
referrer Parameterreferrer parameter must be specified when calling getQuote() or getSwap()referrer valueThe SushiSwap SDK supports customized swap fees when using getQuote() or getSwap().
For detailed SDK examples & execution flow, see:
45f9fac
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.