360 Secure SkillHub
360 安全技能中心

OpenOcean token swap on 40+chains

该 Skill 包以 OpenOcean 聚合 API 为核心,提供报价查询、兑换交易构建、链上执行(含确认式与快速执行两种)以及错误排查等子工作流,覆盖多条 EVM 链及 Solana、Sui;执行环节依赖 Foundry 工具、RPC 与用户自备钱包。

openocean-admin
openocean-admin
热度 44.30
最近更新 2026-05-19 16:11:39
分类:自动化依赖:代码执行 / 第三方 API / MCP 服务应用场景:API 集成 / 财务 / 自动化脚本 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add openocean-multichain-token-swap
Metadata
name
OpenOcean
description
OpenOcean-skills is a skill package for interacting with the OpenOcean Aggregator API. Use it to get swap quotes, build swap transactions, execute swaps, and troubleshoot OpenOcean workflows across 40+ chains, including EVM, Solana, and Sui.
metadata
{"tags":["openocean-skills","openocean","defi","dex-aggregator","swap","quote","transaction-build","swap-execution","evm","solana","sui"],"provider":"OpenOcean","homepage":"https://openocean.finance"}

OpenOcean Skills

Skills for interacting with the OpenOcean Aggregator API. Fetch swap quotes, build transaction calldata, and execute swaps across 40+ chains (EVM, Solana, Sui).

Entry Point and Sub-Skills

This skill package is the entry point. Detailed workflows live in the following files under skills/:

User intent Skill file When to use
Get quote / check price skills/quote/SKILL.md "get a swap quote", "check swap price", "how much would I get for"
Build transaction skills/swap-build/SKILL.md "build a swap", "prepare swap transaction", "get swap calldata"
Execute (with confirmation) skills/swap-execute/SKILL.md "execute swap", "broadcast swap", "send transaction"
Execute fast (no confirmation) skills/swap-execute-fast/SKILL.md "swap fast", "execute immediately" — use with extreme caution
Errors and troubleshooting skills/error-handling/SKILL.md API errors, token resolution failures, execution failures

Reference files (read before calling APIs):

  • references/token-registry.md — Token addresses and decimals per chain
  • references/api-reference.md — OpenOcean API specification

All paths above are relative to the workspace root (the directory that contains this SKILL.md).

Prerequisites

  • Quote / Build: Only need GET request capability (e.g. mcp_web_fetch).
  • Execute: Require Foundry (cast), RPC URL, and wallet (env, Ledger, Trezor, or keystore).

Quick Examples

/quote 1 ETH to USDC on ethereum
/swap-build 100 USDC to ETH on arbitrum from 0xYourAddress
/swap-execute

For full workflows, confirmation prompts, and error handling, follow the corresponding skills/*/SKILL.md file.