| name | spot-advanced-swap-orders |
| description | Use for gasless non-custodial EVM market, limit, TWAP, stop-loss, take-profit, delayed-start swaps. |
| version | 2.6.5 |
| author | Orbs Network |
| license | MIT |
| metadata | {"hermes":{"tags":["DeFi","EVM","swaps","limit-orders","TWAP","stop-loss","Ethereum","Optimism","Polygon","Base","Arbitrum","Avalanche","BNB","Manta","Moonbeam","crypto","Web3"],"category":"blockchain","related_skills":["evm"]}} |
Spot Advanced Swap Orders
Use this skill when the agent needs to turn user intent into a final Spot order payload on a supported EVM chain.
It covers order-shape selection, param normalization, typed-data population, approval guidance, signing, submission, query, and cancellation.
This bundle is instruction-only: build everything locally from the bundled markdown and JSON assets, then submit only the final signed payload.
Execution remains decentralized, non-custodial, oracle-protected, immutable, audited, and battle-tested onchain.
Supported Chains
- Ethereum -
1
- Optimism -
10
- Flare -
14
- BNB Chain -
56
- Unichain -
130
- Polygon -
137
- Monad -
143
- Sonic -
146
- Manta Pacific -
169
- X Layer -
196
- HyperEVM -
999
- Moonbeam -
1284
- Sei -
1329
- MegaETH -
4326
- Mantle -
5000
- Base -
8453
- Arbitrum One -
42161
- Avalanche -
43114
- Linea -
59144
- Berachain -
80094
- Katana -
747474
The bundled JSON template hardcodes the shared agent adapter. Do not derive or replace the adapter per chain.
Relay
- Submit signed orders with
POST https://agents-sink.orbs.network/orders/new.
- Query orders with
GET https://agents-sink.orbs.network/orders; see references/lifecycle.md for filters, polling, and cancellation follow-up.
Workflow
- Read references/quickstart.md for the minimum end-to-end flow.
- Use references/params.md to map user intent into params, defaults, validation, and order-shape fields.
- Use references/sign.md to fill the template, handle approval, sign, and submit.
- Use references/lifecycle.md for relay query semantics, status polling, and cancellation.
- Use references/examples.md only when the final relay payload shape is still unclear.
- Use assets/token-addressbook.md only for optional token alias lookup on supported chains.
- Use assets/repermit.template.json as the canonical typed-data shape.
- Treat
## Supported Chains as the authoritative source for chain support.
- Treat
## Relay as the authoritative relay endpoint list.
Guardrails
## Supported Chains is authoritative for chain support.
## Relay is authoritative for relay endpoints.
- assets/token-addressbook.md is a convenience alias list only. It does not expand chain support or override explicit user-provided addresses.
- This skill is instruction-only. Do not fetch or execute external helper code.
- Normalize params with references/params.md before touching the template.
- Replace only the
<...> placeholders in assets/repermit.template.json. Keep the fixed protocol fields already in the template unchanged.
- Default approval guidance is exact
approve(..., input.maxAmount). Standing maxUint256 approval is opt-in convenience for repeat use, not the default suggestion.
- Submit only the final signed payload as described in references/sign.md.
Agent Contract
- Turn the user request into a params JSON object using references/params.md.
- Normalize params locally, including defaults, rounding, and order-shape fields.
- Confirm
chainId is listed in ## Supported Chains, then populate assets/repermit.template.json from the normalized params while keeping the hardcoded adapter unchanged.
- Handle approval, signing, and submission exactly as described in references/sign.md, and forward the returned signature unchanged.
- Query and cancel exactly as described in references/lifecycle.md.