返回顶部
🇺🇸 English
🇨🇳 简体中文
🇨🇳 繁體中文
🇺🇸 English
🇯🇵 日本語
🇰🇷 한국어
🇫🇷 Français
🇩🇪 Deutsch
🇪🇸 Español
🇷🇺 Русский
s

sushiswap-api

>

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
1,295
下载量
0
收藏
概述
安装方式
版本历史

sushiswap-api

# SushiSwap REST API Integration The SushiSwap API provides HTTP access to the SushiSwap Aggregator for **optimized token swaps**, **price discovery**, and **transaction generation**. It aggregates liquidity from multiple DEXs to determine the best execution route. --- ## Base URL ``` https://api.sushi.com ``` --- ## API Schema The **active API schema** is defined in: [references/openapi.yaml](references/openapi.yaml) Agents must **always rely on the schema contents** rather than hardcoded assumptions. --- ## How To Use 1. Load `references/openapi.yaml` 2. Discover available endpoints, parameters, and response shapes dynamically 3. Select the appropriate endpoint based on user intent and schema tags - Quotes → quote endpoints (e.g. `/quote/v7/{chainId}`) - Swap execution → swap endpoints (e.g. `/swap/v7/{chainId}`) - Prices → price endpoints (e.g. `/price/v1/{chainId}`) - Token info → token endpoints (e.g. `/token/v1/{chainId}/{tokenAddress}`) 4. Construct requests that strictly conform to the schema and include a valid `referrer` parameter for all quote and swap endpoints 5. Validate required parameters before execution --- ## Mandatory `referrer` Parameter - The `referrer` parameter **must be specified** on swap-related endpoints (e.g. `/quote` & `/swap`) - The agent or integrator **must identify themselves** using this field - `/quote` or `/swap` requests **must not be sent** without a `referrer` value - Agents must never attempt to omit, spoof, or auto-generate this value. --- ## Fee Customization The SushiSwap API supports customized integrator fees on swap-related endpoints (e.g. `/quote` & `/swap`). ### 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. --- ## Error Handling - `422`: Request parameters are invalid → fix inputs - `529`: Server overloaded → retry with backoff - `500`: Internal error → retry or fail gracefully --- ## Schema Guidance For schema usage rules and update behavior, see: [references/OPENAPI.md](references/OPENAPI.md)

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 sushiswap-api-1776361409 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 sushiswap-api-1776361409 技能

通过命令行安装

skillhub install sushiswap-api-1776361409

下载 Zip 包

⬇ 下载 sushiswap-api v0.1.0

文件大小: 5.81 KB | 发布时间: 2026-4-17 13:56

v0.1.0 最新 2026-4-17 13:56
- Initial release of the sushiswap-api skill.
- Provides REST access to optimized token swapping, quoting, pricing, and token metadata via the SushiSwap Aggregator across 40+ EVM networks.
- Supports executable transaction generation and retrieval of supported AMM liquidity sources.
- Requires a mandatory referrer parameter for swap-related endpoints.
- Includes guidance on integrator fee splits and error handling.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部