โ† All skills
Tencent SkillHub ยท Developer Tools

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

skill openclawclawhub Free
0 Downloads
0 Stars
0 Installs
0 Score
High Signal

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

โฌ‡ 0 downloads โ˜… 0 stars Unverified but indexed

Install for OpenClaw

Quick setup
  1. Download the package from Yavira.
  2. Extract the archive and review SKILL.md first.
  3. Import or place the package into your OpenClaw setup.

Requirements

Target platform
OpenClaw
Install method
Manual import
Extraction
Extract archive
Prerequisites
OpenClaw
Primary doc
SKILL.md

Package facts

Download mode
Yavira redirect
Package format
ZIP package
Source platform
Tencent SkillHub
What's included
SKILL.md, references/REFERENCE.md

Validation

  • Use the Yavira download entry.
  • Review SKILL.md after the package is downloaded.
  • Confirm the extracted package contains the expected setup assets.

Install with your agent

Agent handoff

Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.

  1. Download the package from Yavira.
  2. Extract it into a folder your agent can access.
  3. Paste one of the prompts below and point your agent at the extracted folder.
New install

I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Tell me what you changed and call out any manual steps you could not complete.

Upgrade existing

I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Summarize what changed and any follow-up checks I should run.

Trust & source

Release facts

Source
Tencent SkillHub
Verification
Indexed source record
Version
0.1.0

Documentation

ClawHub primary doc Primary doc: SKILL.md 9 sections Open source page

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() Provide all required parameters exactly as defined by the SDK types Always include a valid referrer value 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 referrer parameter must be specified when calling getQuote() or getSwap() The agent or integrator must identify themselves using this field Swap-related SDK calls must not be executed without a referrer value 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: references/REFERENCE.md

Category context

Code helpers, APIs, CLIs, browser automation, testing, and developer operations.

Source: Tencent SkillHub

Largest current source with strong distribution and engagement signals.

Package contents

Included in package
2 Docs
  • SKILL.md Primary doc
  • references/REFERENCE.md Docs