Sushiswap sdk

From dvcrn/openclaw-skills-marketplace · View interactive version

Sushiswap sdk is an AI agent skill from the GitHub repository dvcrn/openclaw-skills-marketplace. 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 applicatio

How to use this skill

Skill file

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

  1. Import the appropriate SushiSwap SDK helpers from sushi/evm
  2. Select the correct SDK method based on user intent:
  1. Provide all required parameters exactly as defined by the SDK types
  2. Always include a valid referrer value
  3. Validate inputs (chainId, token addresses, amount, slippage) before execution
  4. 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'

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


Fee Customization

The SushiSwap SDK supports customized swap fees when using getQuote() or getSwap().

Default fee model

Custom fee splits

team rather than attempting to modify request parameters.


Additional Reference

For detailed SDK examples & execution flow, see:

references/REFERENCE.md

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.