cryptoexpert

Order ID vs Transaction Hash in Intent-Based Swaps: Use the UID

A signed intent-based swap has two identifiers: the order ID tracks your intent from signing to expiry, while a transaction hash appears only when a solver settles it. In cowswap, signed trade intents and solver-run batch auctions make the distinction visible: one identifier belongs to your order, the other to the settlement batch. Your signature creates an off-chain order; the solver later submits the on-chain transaction.

What Does Each Identifier Point To?

The order ID points to the instruction you signed. Its precise form is an order UID: 56 bytes containing an order hash, the owner address, and a validTo value that sets its expiry. The UID exists as soon as the order is signed, including when no solver ever fills it. Search that UID in CoW Explorer to follow the order’s status while it waits, fills, or expires.

Take a signed order to exchange one token for another. Before settlement, you can inspect its order page, but you have no settlement transaction hash to search on Etherscan. Once a solver includes the order in a batch, CoW Explorer links the filled order to that batch’s transaction. The link takes you from the order’s history to the on-chain execution.

A transaction hash identifies the solver’s submitted transaction, which can settle multiple orders in one batch. It therefore points to the batch rather than uniquely naming your intent. In the transaction’s logs, the GPv2Settlement contract emits a Trade event containing your order UID. That event is the on-chain connection between the order you signed and the transaction that filled it.

Where Should You Look for a Filled Swap?

Start with the order UID in CoW Explorer when you want your swap’s status or settlement link. Open the linked transaction in Etherscan when you want to inspect execution, token transfers, and the GPv2Settlement logs. Search the transaction hash there only after settlement has produced one.

The solver sends the batch transaction, so your address is not its sender. An outgoing-transactions list for your wallet therefore will not show a swap transaction submitted by you. Look at token transfer activity instead: the token you bought arrives at your address, and the settlement transaction records the transfer. If a wallet display shows the incoming tokens but no outgoing swap transaction, use the order UID to find the settlement link and its transaction hash.