Requirements
- Target platform
- OpenClaw
- Install method
- Manual import
- Extraction
- Extract archive
- Prerequisites
- OpenClaw
- Primary doc
- SKILL.md
Execute token swaps using the 0x API with support for price quotes, gasless meta-transactions, and on-chain trade history retrieval.
Execute token swaps using the 0x API with support for price quotes, gasless meta-transactions, and on-chain trade history retrieval.
Hand the extracted package to your coding agent with a concrete install brief instead of figuring it out manually.
I downloaded a skill package from Yavira. Read SKILL.md from the extracted folder and install it by following the included instructions. Then review README.md for any prerequisites, environment setup, or post-install checks. Tell me what you changed and call out any manual steps you could not complete.
I downloaded an updated skill package from Yavira. Read SKILL.md from the extracted folder, compare it with my current installation, and upgrade it while preserving any custom configuration unless the package docs explicitly say otherwise. Then review README.md for any prerequisites, environment setup, or post-install checks. Summarize what changed and any follow-up checks I should run.
โ ๏ธ SECURITY WARNING: This skill involves real funds. Review all parameters before executing swaps.
cd skills/zeroex-swap npm install
VariableDescriptionRequiredZEROEX_API_KEYGet from https://dashboard.0x.org/YesPRIVATE_KEYWallet private key (hex, without 0x prefix)YesRPC_URLRPC endpoint for chain (optional, defaults provided)No Declared required env vars: ZEROEX_API_KEY, PRIVATE_KEY export ZEROEX_API_KEY="your-0x-api-key" export PRIVATE_KEY="your-private-key-hex" export RPC_URL="https://mainnet.base.org" # optional
node quote.js --sell USDC --buy WETH --amount 1 --chain base
node swap.js --sell USDC --buy WETH --amount 1 --chain base
node swap.js --sell WETH --buy USDC --amount 0.01 --chain base
curl -s "https://api.0x.org/trade-analytics/swap?chainId=8453&taker=0xYOUR_WALLET" \ -H "0x-api-key: $ZEROEX_API_KEY" \ -H "0x-version: v2"
curl -s "https://api.0x.org/trade-analytics/gasless?chainId=8453&taker=0xYOUR_WALLET" \ -H "0x-api-key: $ZEROEX_API_KEY" \ -H "0x-version: v2"
Flow: Get gasless quote Sign EIP-712 payload Submit meta-tx
curl -s "https://api.0x.org/gasless/quote?sellToken=USDC&buyToken=WETH&sellAmount=1000000&chainId=8453&taker=0xYOUR_WALLET" \ -H "0x-api-key: $ZEROEX_API_KEY" \ -H "0x-version: v2"
// use viem to sign quote.trade.eip712 await client.signTypedData({ domain: quote.trade.eip712.domain, types: quote.trade.eip712.types, message: quote.trade.eip712.message, primaryType: quote.trade.eip712.primaryType });
curl -s -X POST "https://api.0x.org/gasless/submit" \ -H "0x-api-key: $ZEROEX_API_KEY" \ -H "0x-version: v2" \ -H "Content-Type: application/json" \ -d '{"trade": {"type":"settler_metatransaction","eip712": {"domain": {"name": "Settler", "chainId": 8453, "verifyingContract": "0x..."},"types": {...},"message": {...},"primaryType":"..."},"signature": {"v": 27, "r": "0x...", "s": "0x...", "signatureType": 2}}}'
Use a dedicated hot wallet Set slippage protection Approve exact amounts only Use your own RPC via RPC_URL
Code helpers, APIs, CLIs, browser automation, testing, and developer operations.
Largest current source with strong distribution and engagement signals.