w3-io/W3 CoW Swap Action
MEV-protected swaps via CoW Protocol batch auctions
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| command | Operation to perform (quote, submit-order, get-order, get-trades, cancel-order, limit-order) | yes | — |
| chain | Target chain (ethereum, gnosis, arbitrum, base, sepolia) | yes | — |
| sell-token | Token to sell (address or "ETH"/"native" for the native token) | no | — |
| buy-token | Token to buy (address or "ETH"/"native" for the native token) | no | — |
| amount | Amount to sell in base units (before fees) | no | — |
| from | Sender wallet address | no | — |
| receiver | Receiver wallet address (defaults to from) | no | — |
| quote | JSON quote response from the quote command (for submit-order) | no | — |
| order-id | Order UID (for get-order, get-trades, and cancel-order commands). cancel-order requires signer access (bridge-allow and W3_SECRET_ETHEREUM). | no | — |
| buy-amount | Minimum acceptable buy amount in base units (for limit-order) | no | — |
| valid-for | Seconds until order expiry (for limit-order, default 3600) | no | 3600 |
Outputs
| name | description |
|---|---|
| result | JSON result of the operation |