← 返回 Skills 市场
agora0x

FLOOR OTC

作者 Agora0x · GitHub ↗ · v1.3.0 · MIT-0
cross-platform ✓ 安全检测通过
210
总下载
0
收藏
0
当前安装
4
版本数
在 OpenClaw 中安装
/install floor-otc
功能描述
Trustless token swaps for AI agents on Base. Two paths — relay agent-signed orders to CoW Protocol for instant batch-auction settlement (zero capital, MEV pr...
使用说明 (SKILL.md)

FLOOR OTC — Token Swaps for the Agent Economy

FLOOR OTC routes token swaps two ways on Base mainnet:

  1. CoW Protocol relay (recommended for agents) — the calling agent signs an EIP-712 order locally, FLOOR forwards it to CoW's batch auction. Solvers fill against all of Base's liquidity in ~30s. MEV-protected, no slippage to pool, no escrow custody. FLOOR earns 25 bps via CoW's partnerFee mechanism, encoded in the appData the trader signs.
  2. FloorEscrowV2 (for humans / 1:1 OTC) — both parties deposit into an on-chain escrow contract, atomic settlement, 25 bps protocol fee.

ERC-8004 Agent #31596 on Base Mainnet.

Quick Start

Get a quote (REST)

curl -s "https://floor-a2a-production.up.railway.app/api/quote?from=USDC&to=WETH&amount=1000" | jq

Get a quote (JSON-RPC / A2A)

curl -s -X POST https://floor-a2a-production.up.railway.app/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tasks/send","params":{"skill_id":"get_quote","arguments":{"from_token":"USDC","to_token":"WETH","amount":1000}},"id":1}'

Get live prices

curl -s "https://floor-a2a-production.up.railway.app/api/prices" | jq

Execute a trade (creates on-chain escrow)

curl -s -X POST https://floor-a2a-production.up.railway.app/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tasks/send","params":{"skill_id":"execute_trade","arguments":{"from_token":"USDC","to_token":"DAI","amount":1000}},"id":1}'

Check trade status

curl -s -X POST https://floor-a2a-production.up.railway.app/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tasks/send","params":{"skill_id":"check_trade","arguments":{"trade_id":"0xYOUR_TRADE_ID"}},"id":1}'

Prepare a CoW order (agent-signed, FLOOR-relayed)

Step 1 — ask FLOOR to build the order:

curl -s -X POST https://floor-a2a-production.up.railway.app/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tasks/send","params":{"skill_id":"prepare_trade","arguments":{"sell_token":"USDC","buy_token":"WETH","sell_amount":1000,"trader_address":"0xYourAgentWallet"}},"id":1}'

You get back typed_data (EIP-712 domain + types + message), app_data (FLOOR's partnerFee doc + hash), quote_summary, preflight (balance + relayer allowance), and relayer.approve_calldata if you still need to approve the GPv2VaultRelayer.

Step 2 — sign locally with your wallet:

const signature = await wallet.signTypedData(
  typed_data.domain,
  typed_data.types,
  typed_data.message
);

Step 3 — submit through FLOOR:

curl -s -X POST https://floor-a2a-production.up.railway.app/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tasks/send","params":{"skill_id":"submit_signed_trade","arguments":{"order":{...},"signature":"0x...","trader_address":"0xYourAgentWallet"}},"id":1}'

Returns order_uid + explorer_url. Track the fill at https://explorer.cow.fi/base/orders/{order_uid}.

Check a CoW order

curl -s -X POST https://floor-a2a-production.up.railway.app/a2a \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","method":"tasks/send","params":{"skill_id":"check_cow_order","arguments":{"order_uid":"0xYOUR_ORDER_UID"}},"id":1}'

Supported Tokens (Base Mainnet)

Token Address
USDC 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913
USDbC 0xd9aAEc86B65D86f6A7B5B1b0c42FFA531710b6Ca
DAI 0x50c5725949A6F0c72E6C4a641F24049A917DB0Cb
WETH 0x4200000000000000000000000000000000000006

Additional tokens supported for quotes only: ETH, BTC, WBTC, UNI, LINK, AAVE.

Pricing

Quotes are free at real CoinGecko market rates — zero spread. A 25 bps (0.25%) protocol fee is collected on every fill:

  • CoW relay: routed by solvers via CoW's partnerFee mechanism in the appData the trader signs.
  • FloorEscrowV2: deducted from each side on settlement, immutable in the contract — no admin keys.

Skills

CoW relay (recommended for agents):

  • prepare_trade — Build a CoW order for the calling agent's wallet to sign. Returns EIP-712 typed data, FLOOR appData (with 25 bps partner fee baked in), and a preflight check on the trader's balance + relayer allowance. FLOOR never custodies funds.
  • submit_signed_trade — Forward a trader-signed CoW order to the CoW order book on Base. FLOOR validates the signature locally, then relays. Returns the orderUid and explorer URL. Solvers fill in the next batch (~30s).
  • check_cow_order — Look up a CoW order by its 56-byte orderUid. Returns open / fulfilled / cancelled / expired plus executed amounts.

FloorEscrowV2 (1:1 OTC, for humans via web UI):

  • execute_trade — Create on-chain escrow on Base (both parties deposit, atomic settlement)
  • check_trade — Check escrow status by trade ID

Quotes & data:

  • get_quote — Live swap quote at real market rates, zero spread
  • get_prices — Current token prices

Endpoints

  • Agent Card: https://floor-a2a-production.up.railway.app/.well-known/agent.json
  • A2A (JSON-RPC): POST https://floor-a2a-production.up.railway.app/a2a
  • REST Quote: GET https://floor-a2a-production.up.railway.app/api/quote?from=USDC&to=WETH&amount=1000
  • REST Prices: GET https://floor-a2a-production.up.railway.app/api/prices
  • MCP (SSE): https://zesty-solace-production-13de.up.railway.app/sse
  • Health: GET https://floor-a2a-production.up.railway.app/health

On-Chain

  • Network: Base Mainnet (chain ID 8453)
  • Escrow Contract (V2): 0x9EC9d882C93F52621CBD0d146D3F2e0929E53AA7 (verified on Basescan)
  • CoW Settlement: 0x9008D19f58AAbD9eD0D60971565AA8510560ab41
  • CoW VaultRelayer (approve sell tokens here): 0xC92E8bdf79f0507f65a392b0ab4667716BFE0110
  • Protocol Fee: 25 bps (0.25%) — both venues
  • Identity Registry: 0x8004A169FB4a3325136EB29fA0ceB6D2e539a432
  • Agent ID: 31596

No authentication required. Quotes are free.

安全使用建议
This skill appears to do what it says (prepare and relay CoW orders or create on-chain escrow). Before using it: 1) Understand that signed orders and trade metadata are sent to remote endpoints hosted on railway.app and a separate SSE host — you must trust those hosts. 2) Never send private keys; sign orders locally and verify the EIP-712 typed_data, appData hash, recipient addresses, and fee fields before signing. 3) Consider testing with very small amounts first and verify contract addresses (escrow and CoW vault/settlement) on-chain. 4) If you operate an autonomous agent, be aware a compromised relay endpoint could submit manipulated orders or fabricated quotes; restrict agent permissions and use hardware/offline signing if possible.
功能分析
Type: OpenClaw Skill Name: floor-otc Version: 1.3.0 The floor-otc skill bundle provides a legitimate interface for AI agents to perform token swaps on the Base network via CoW Protocol and a custom escrow contract. The logic relies on structured API calls to documented endpoints (e.g., floor-a2a-production.up.railway.app) and standard EIP-712 signing for non-custodial transactions. No evidence of malicious intent, data exfiltration, or harmful prompt injection was found in SKILL.md or clawhub-skill.json.
能力标签
cryptorequires-wallet
能力评估
Purpose & Capability
Name/description (agent token swaps on Base) match the declared needs: only curl is required and the SKILL.md instructs the agent to call the service's REST/A2A endpoints and build/sign EIP-712 orders locally. There are no unrelated binaries, config paths, or unexpected credentials.
Instruction Scope
Instructions are narrowly scoped to quoting, preparing EIP-712 orders, asking the agent/user to sign locally, and submitting signed orders to FLOOR's relayer or creating/checking escrow trades. They direct network traffic to the documented endpoints (railway.app and a separate SSE host). There is an inherent risk whenever you send signed orders or trade metadata to a remote service: verify typed_data/appData and target contract addresses before signing. The SKILL.md does not instruct sending private keys or reading unrelated system files.
Install Mechanism
Instruction-only skill with no install spec and no code files. Lowest install risk — nothing will be written to disk by the skill itself.
Credentials
Skill requests no environment variables, no credentials, and no config paths. Its network calls are expected for a relay/quote service. There are no unexplained SECRET/TOKEN requirements.
Persistence & Privilege
always is false (not force-included). Model invocation is allowed (default) which is expected for an agent-invokable skill. The skill does not request to modify other skills or system-wide agent settings.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install floor-otc
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /floor-otc 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.3.0
Version 1.3.0 — Major update: CoW Protocol integration enables batched agent-signed swaps alongside existing escrow OTC. - Added support for CoW Protocol relays: agents can now sign EIP-712 orders for instant, MEV-protected batch-auction settlement across Base liquidity. - Introduced two swap paths: automated CoW batch trading for agents, or existing 1:1 on-chain escrow for OTC/human cases. - New skills for CoW relay: `prepare_trade`, `submit_signed_trade`, and `check_cow_order`. - Expanded documentation and examples for preparing, signing, and submitting agent trades via CoW. - Protocol fee (25 bps) now applies to both settlement venues via native CoW partnerFee or on-chain escrow. - Existing quote, trade, and price endpoints remain available; no authentication required.
v1.2.0
- Added MCP (SSE) endpoint: `https://zesty-solace-production-13de.up.railway.app/sse` - No other functional changes detected.
v1.1.0
floor-otc 1.1.0 changelog - Updated on-chain escrow contract to V2 (`0x9EC9d882C93F52621CBD0d146D3F2e0929E53AA7`) with immutable protocol fee. - New pricing model: zero spread, real CoinGecko rates; protocol fee of 25 bps (0.25%) applied to each side at settlement. - Removed previous spread tiers. - Documentation updates reflecting new pricing, contract details, and clearer skill descriptions.
v1.0.0
- Initial release of FLOOR OTC, a trustless OTC escrow for token swaps on Base Mainnet. - Provides live price quotes, trade execution through on-chain escrows, and trade status checking. - Atomic settlement with no middleman or admin keys. - Supports key tokens including USDC, USDbC, DAI, and WETH for escrow trades; additional tokens supported for quotes. - Tiered trade spreads based on size; CoinGecko-based real-time pricing. - Open REST and JSON-RPC (A2A) endpoints; no authentication required.
元数据
Slug floor-otc
版本 1.3.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 4
常见问题

FLOOR OTC 是什么?

Trustless token swaps for AI agents on Base. Two paths — relay agent-signed orders to CoW Protocol for instant batch-auction settlement (zero capital, MEV pr... 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 210 次。

如何安装 FLOOR OTC?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install floor-otc」即可一键安装,无需额外配置。

FLOOR OTC 是免费的吗?

是的,FLOOR OTC 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

FLOOR OTC 支持哪些平台?

FLOOR OTC 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 FLOOR OTC?

由 Agora0x(@agora0x)开发并维护,当前版本 v1.3.0。

💬 留言讨论