CoW Swap action reference
This page is generated from the plugin registry. Do not edit it by hand.
CoW Protocol: batch auction DEX for MEV-protected trades, order pre-signing, and conditional orders
For guidance and examples see the CoW Swap guide.
Set actionType in a node’s config to the action type shown under each heading. See the workflow definition page for the node format.
Read actions return the value under result: a single unnamed output is result, a named one is result.<name>, and several outputs are result.<name> each. Reference it as {{@nodeId:Label.result}}. Integer Solidity types are passed as decimal strings.
| Action | Action type |
|---|---|
| CoW Swap: Get Domain Separator | cowswap/get-domain-separator |
| CoW Swap: Get Vault Relayer | cowswap/get-vault-relayer |
| CoW Swap: Get Order Fill Amount | cowswap/get-filled-amount |
| CoW Swap: Get Pre-Signature Status | cowswap/get-pre-signature |
| CoW Swap: Set Pre-Signature | cowswap/set-pre-signature |
| CoW Swap: Invalidate Order | cowswap/invalidate-order |
| CoW Swap: Check Conditional Order | cowswap/check-single-order |
| CoW Swap: Get Cabinet Value | cowswap/get-cabinet |
| CoW Swap: Remove Conditional Order | cowswap/remove-conditional-order |
| CoW Swap: Create Conditional Order | cowswap/create-conditional-order |
CoW Swap: Get Domain Separator
Action type: cowswap/get-domain-separator. Connection: not required.
Returns the EIP-712 domain separator used to compute order digests for this deployment
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. |
Outputs
| Output | Description |
|---|---|
result | EIP-712 Domain Separator |
success | Whether the operation succeeded |
error | Error message if the operation failed |
CoW Swap: Get Vault Relayer
Action type: cowswap/get-vault-relayer. Connection: not required.
Returns the GPv2VaultRelayer address that users must approve sell tokens to
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. |
Outputs
| Output | Description |
|---|---|
result | Vault Relayer Address |
success | Whether the operation succeeded |
error | Error message if the operation failed |
CoW Swap: Get Order Fill Amount
Action type: cowswap/get-filled-amount. Connection: not required.
Returns how much of an order has been filled so far in sell token units
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
orderUid | bytes | Yes | Order UID (56 bytes) (bytes). |
Outputs
| Output | Description |
|---|---|
result | Filled Amount |
success | Whether the operation succeeded |
error | Error message if the operation failed |
CoW Swap: Get Pre-Signature Status
Action type: cowswap/get-pre-signature. Connection: not required.
Returns the pre-signature status for an order. Non-zero means the order is pre-signed.
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
orderUid | bytes | Yes | Order UID (56 bytes) (bytes). |
Outputs
| Output | Description |
|---|---|
result | Pre-Signature Status |
success | Whether the operation succeeded |
error | Error message if the operation failed |
CoW Swap: Set Pre-Signature
Action type: cowswap/set-pre-signature. Connection: required (web3).
Pre-sign an order on-chain for smart contract wallets that cannot sign off-chain
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
orderUid | bytes | Yes | Order UID (56 bytes) (bytes). | ||
signed | bool | Yes | Signed (true to enable, false to cancel) (bool). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
CoW Swap: Invalidate Order
Action type: cowswap/invalidate-order. Connection: required (web3).
Permanently cancel an order on-chain by marking it as fully filled
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
orderUid | bytes | Yes | Order UID (56 bytes) (bytes). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
CoW Swap: Check Conditional Order
Action type: cowswap/check-single-order. Connection: not required.
Returns whether a specific conditional order has been registered by an owner
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
owner | address | Yes | Owner Address (address). | ||
orderHash | bytes32 | Yes | Order Hash (bytes32). |
Outputs
| Output | Description |
|---|---|
result | Order Exists |
success | Whether the operation succeeded |
error | Error message if the operation failed |
CoW Swap: Get Cabinet Value
Action type: cowswap/get-cabinet. Connection: not required.
Read conditional order state stored by the order handler in the cabinet key-value store
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
owner | address | Yes | Owner Address (address). | ||
key | bytes32 | Yes | Storage Key (bytes32). |
Outputs
| Output | Description |
|---|---|
result | Stored Value |
success | Whether the operation succeeded |
error | Error message if the operation failed |
CoW Swap: Remove Conditional Order
Action type: cowswap/remove-conditional-order. Connection: required (web3).
Remove a previously created conditional order to prevent future execution
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
singleOrderHash | bytes32 | Yes | Order Hash (bytes32). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
CoW Swap: Create Conditional Order
Action type: cowswap/create-conditional-order. Connection: required (web3).
Create a programmatic conditional order (TWAP, stop-loss) on ComposableCoW that will be automatically executed when conditions are met
Inputs
| Field | Type | Required | Default | Allowed values | Description |
|---|---|---|---|---|---|
network | string | Yes | chain ids 1, 10, 8453, 42161 | Network. | |
sendMode | string | No | transaction, private-relay | Send as. How the transaction goes out. “transaction” (the default) sends it to the public mempool. “private-relay” sends it through the network’s private relay (Flashbots Protect on Ethereum), only on networks that have one, and is never gas-sponsored. A config with usePrivateMempool: true and no sendMode uses the private relay where the network has one and the public mempool elsewhere, never sponsored. | |
params | bytes | Yes | Conditional Order Params (ABI-encoded ConditionalOrderParams struct) (bytes). | ||
dispatch | bool | Yes | Dispatch (true to emit event for watchtower to pick up) (bool). | ||
gasLimitMultiplier | string | No | Gas Limit. | ||
sponsorGas | boolean | No | true | Sponsor gas. When on, the transaction goes through gas sponsorship first and falls back to your own wallet if sponsorship is unavailable on this network or your credits are spent. Turn it off to always pay gas from your own wallet. Sponsorship is never used when Send as is not Normal transaction or the node signs through a Safe, and on Write Contract when Simulate at is set to Next block. Shown when the network supports gas sponsorship. |
Outputs
| Output | Description |
|---|---|
success | Whether the operation succeeded |
error | Error message if the operation failed |
transactionHash | Transaction hash |
transactionLink | Explorer link to transaction |
route | How KeeperHub routed the send on an EVM network: public (the public mempool, through your RPC or the chain’s default RPC), private-relay (accepted by the private relay chosen in Send as), sponsored (gas-sponsored), bundle (Write Contract sent as a bundle to block builders), bundle-and-public (sent as a bundle and to the public mempool), skipped-in-flight (Write Contract with Send as Bundle sent nothing because this workflow’s earlier bundle could still land, or an earlier run’s public copy is not mined yet: KeeperHub checks it every few minutes and stops waiting after a day) or waiting (Write Contract with Send as Bundle sent nothing because its Not before time is still too far ahead, Max Fee held back the targets ahead, or KeeperHub had paused bundle sends, with paused true, or could not check whether they are on, with switchUnread true). Through a Safe, the route of the transaction your wallet sent to the Safe. Absent when nothing was sent (except skipped-in-flight and waiting), or when only the private relay was tried and it never confirmed taking the transaction; more values may be added. |
included | True when the transaction was seen in a block (one confirmation, not final); it may have reverted, so check error too. False when it was sent but is not in a block, and on a skipped-in-flight or waiting bundle step (a paused one included). Absent when route is absent. |
Contracts
| Contract | Chain ids |
|---|---|
| GPv2Settlement | 1, 10, 8453, 42161 |
| ComposableCoW | 1, 10, 8453, 42161 |