openocean
Original:🇺🇸 English
Translated
2 scriptsChecked / no sensitive code detected
OpenOcean DEX aggregator adapter for Starchild wallet (quote, approval, and swap execution with balance-delta verification)
2installs
Added on
NPX Install
npx skill4agent add starchild-ai-agent/official-skills openoceanTags
Translated version includes tags in frontmatterSKILL.md Content
View Translation Comparison →OpenOcean Skill (Starchild Adapter)
Use this skill when user asks to:
- get OpenOcean quote
- execute swap via OpenOcean route
- run OpenOcean trade through Starchild wallet
Runtime Mode
Script-only. Does not register tools.
Imports:
from skills.openocean.exports import openocean_gas_price, openocean_quote, openocean_swapFunctions
openocean_gas_price(chain='ethereum')openocean_quote(chain, in_token, out_token, amount_wei, slippage='1')openocean_swap(chain, in_token, out_token, amount_wei, slippage='1', verify_timeout_seconds=90, poll_interval_seconds=5)
Current Scope
- Ethereum mainnet execution path tested (ETH -> ERC20 and ERC20 -> ETH)
- Uses Starchild wallet runtime () to broadcast
/agent/transfer - Built-in ERC20 approval flow (checks allowance and sends approve when needed)
- Verifies result by balance delta (works when tx hash is delayed)
Safety Checklist
- First call and show output.
openocean_quote - Confirm amount and slippage with user.
- Execute with small amount first.
- Require verification result () before claiming success.
verified_by_balance_delta=true