sushiswap-sdkTypeScript 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
Install via ClawdBot CLI:
clawdbot install 0xMasayoshi/sushiswap-sdkThe 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 viem
npm add sushi viem
yarn add sushi viem
bun add sushi viem
sushi/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().
team rather than attempting to modify request parameters.
For detailed SDK examples & execution flow, see:
Generated Mar 1, 2026
A TypeScript application that automatically rebalances a user's cryptocurrency portfolio by executing swaps across multiple chains. The SDK ensures type safety for token amounts and slippage calculations, preventing arithmetic errors during high-frequency trading.
A web interface that allows users to swap tokens between different blockchain networks. The SDK fetches quotes and generates swap transactions, with built-in validation for supported chain IDs to avoid failed transactions on unsupported networks.
A dashboard for DeFi users to monitor and execute swaps to optimize yield farming strategies. The SDK provides ergonomic helpers for formatting token prices and amounts, ensuring accurate display and transaction execution without floating-point inaccuracies.
An e-commerce plugin that enables merchants to accept cryptocurrency payments by converting them to stablecoins. The SDK handles quote requests and swap transaction generation, with mandatory referrer identification for tracking and fee distribution.
A bot that executes arbitrage opportunities by swapping tokens based on real-time price feeds. The SDK's typed wrappers over the SushiSwap API ensure safe arithmetic and transaction data generation, reducing the risk of execution errors in automated systems.
Integrators earn 80% of swap fees by including a valid referrer parameter in SDK calls. This model incentivizes developers to build applications using the SDK, driving volume to SushiSwap while generating passive income from transaction fees.
Companies offer subscription-based services that leverage the SDK for swap functionalities in their platforms. Revenue comes from monthly fees charged to users or enterprises for access to enhanced trading tools and analytics powered by the SDK.
Partnerships with large-scale projects to customize fee splits or integrate the SDK into proprietary systems. Revenue is generated through negotiated agreements, such as fixed licensing fees or revenue sharing from specialized swap services.
💬 Integration Tip
Always validate chain IDs against the SDK's supported list before making requests, and ensure the referrer parameter is included to comply with fee requirements and avoid errors.
Connect Claude to Clawdbot instantly and keep it connected 24/7. Run after setup to link your subscription, then auto-refreshes tokens forever.
ERC-8004 Trustless Agents - Register, discover, and build reputation for AI agents on Ethereum. Use when registering agents on-chain, querying agent registries, giving/receiving reputation feedback, or interacting with the AI agent trust layer.
Autonomous crypto trading on Base via Bankr. Use for trading tokens, monitoring launches, executing strategies, or managing a trading portfolio. Triggers on "trade", "buy", "sell", "launch", "snipe", "profit", "PnL", "portfolio balance", or any crypto trading task on Base.
Deploy ERC20 tokens on Base using Clanker SDK. Create tokens with built-in Uniswap V4 liquidity pools. Supports Base mainnet and Sepolia testnet. Requires PRIVATE_KEY in config.
Query DeFi portfolio data across 50+ chains via Zapper's GraphQL API. Use when the user wants to check wallet balances, DeFi positions, NFT holdings, token prices, or transaction history. Supports Base, Ethereum, Polygon, Arbitrum, Optimism, and more. Requires ZAPPER_API_KEY.
Interact with Solana blockchain via Helius APIs. Create/manage wallets, check balances (SOL + tokens), send transactions, swap tokens via Jupiter, and monitor addresses. Use for any Solana blockchain operation, crypto wallet management, token transfers, DeFi swaps, or portfolio tracking.