Jump to content
Today Crypto

Crypto stories, filed each day

How Do I Find My Order in an Etherscan Batch Settlement?

To read a batch settlement transaction on Etherscan, confirm CoW Swap’s settle call, match your orderUid in Trade logs, then compare amounts with CoW Explorer.

The Today Crypto Editors

How Do I Find My Order in an Etherscan Batch Settlement?

A CoW Swap batch settlement is read on Etherscan by finding your orderUid in the GPv2Settlement transaction’s Trade logs; that event records your order’s executed amounts and fee.

Match the orderUid first: transfers can combine activity from many orders and won’t identify your fill by themselves.

Have the settlement transaction hash and your orderUid ready. Get the hash from your order in CoW Explorer, and copy the orderUid so you can compare it with the decoded event. The orderUid is the key that connects your order to its execution inside a solver’s batch.

On Ethereum mainnet, CoW Swap settlements go through GPv2Settlement at 0x9008D19f58AAbD9eD0D60971565AA8510560ab41. Its settle() call takes token and clearing-price arrays, trades, and interactions. Those interactions can include trades with AMMs, which is why the transaction’s token movements may not line up one-to-one with individual orders. The cowswap batch auction is a useful example of how cowswap groups orders into solver-run batches before settlement.

The Trade log shows your order’s execution

The Trade event is the per-order record in a batch settlement, so use it to read what your order sold, bought, and paid as a fee.

  1. Open the settlement hash on Etherscan. The transaction page shows the block, status, and call details for the settlement.

  2. Confirm the transaction calls GPv2Settlement and the method is settle. The From address is the solver that submitted the batch; To should be GPv2Settlement. The decoded input contains token addresses, clearingPrices, trades, and interactions.

  3. Open Logs and find Trade events emitted by GPv2Settlement. Compare each event’s orderUid with yours. The matching event identifies your order among the other fills in the same transaction.

  4. Read sellAmount, buyAmount, and feeAmount in that event. The decoded settle input helps explain the pricing: executed buy amount is approximately sell amount multiplied by the clearing price for the sell token, then divided by the clearing price for the buy token. The relevant prices are selected by the tokens’ indexes in the input arrays.

  5. Cross-check the event against Token Transfers and your order in CoW Explorer. The GPv2VaultRelayer pulls sell tokens from traders, interactions can route tokens through AMMs, and the settlement pays buy tokens out. Because orders and AMM activity can be netted, transfers may combine amounts or include tokens you did not trade directly. The task is done when the matching Trade amounts agree with CoW Explorer’s executed amounts.

What does the Settlement event show?

The Settlement event identifies the solver address for the completed settlement. It does not give you each order’s amounts; use the Trade event with your orderUid for those.

How do I find my order on CoW Explorer?

Open the order in CoW Explorer and locate its settlement transaction hash and orderUid. You are ready to trace the fill when you have both: the hash opens the batch on Etherscan, while the orderUid picks out your Trade event.

Questions readers ask next

For the next checks, use the same transaction and distinguish the solver’s role from the trader’s order data.

How do I tell which solver settled my order?

Read the From address on the settle() transaction or the solver address in the Settlement event. That address submitted the batch; the Trade event still identifies your own order and execution.

Why does the settlement include tokens I never traded?

A batch can include several orders and solver interactions with AMMs, so its token transfers can reflect netted flows across the whole settlement. Your order’s Trade event lists its sell token, buy token, amounts, fee, and orderUid.

Who pays the gas for a batch settlement?

The solver submits the settlement transaction and pays its on-chain gas cost. Your Trade event records the order’s feeAmount; it is separate from the transaction’s gas payment.