sushiswap-sdk
БесплатноБез исполняемых скриптовНе проверенTypeScript SDK for interacting with the SushiSwap Aggregator and related primitives. This SDK is a typed wrapper over the SushiSwap API, providing ergonomic…
от jiayaoqijia★ 81 звезда на GitHubОб этом скилле
SushiSwap SDK Integration
The 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.
Installation
Install the required packages using your package manager of choice:
pnpm add sushi viem
npm add sushi viem
yarn add sushi viem
bun add sushi viem
How To Use
- Import the appropriate SushiSwap SDK helpers from
sushi/evm - Select the correct SDK method based on user intent:
- Swap quote →
getQuote() - Swap execution →
getSwap()
- Swap quote →
- Provide all required parameters exactly as defined by the SDK types
- Always include a valid
referrervalue - Validate inputs (chainId, token addresses, amount, slippage) before execution
- Use returned transaction data exactly as provided for simulation or execution
The SDK is a thin wrapper over the SushiSwap REST API — all routing, pricing, and calldata generation is still performed by the API.
Supported Networks
The SushiSwap SDK exposes the list of supported swap networks via:
import { SWAP_API_SUPPORTED_CHAIN_IDS } from 'sushi/evm'
- Agents and integrators should always check this list before attempting to:
- Fetch a quote
- Generate swap transaction data
- If a requested chainId is not included:
- The agent must fail early or prompt the user to select a supported network
- Agents must not attempt to guess or hardcode supported chains
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.
--
Mandatory referrer Parameter
- The
referrerparameter must be specified when callinggetQuote()orgetSwap() - The agent or integrator must identify themselves using this field
- Swap-related SDK calls must not be executed without a
referrervalue - The SDK must not auto-generate or omit this value on behalf of the integrator
Fee Customization
The SushiSwap SDK supports customized swap fees when using getQuote() or getSwap().
Default fee model
- Swap-related requests follow an 80/20 fee split by default
- 80% to the integrator (referrer)
- 20% to SushiSwap
- This split applies unless explicitly overridden by SushiSwap
Custom fee splits
- Alternative fee splits require a partnership with SushiSwap
- Agents and integrators should not assume custom splits are available. If users request alternative fee splits, agents should direct them to the SushiSwap team rather than attempting to modify request parameters.
Additional Reference
For detailed SDK examples & execution flow, see:
Установить sushiswap-sdk в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sushiswap-sdk?
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
Как установить скилл sushiswap-sdk?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sushiswap-sdk запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic