Skip to main content

Order

The Order dataclass represents a CoW Protocol order.

Fields

OrderKind Enum

OrderBalance Enum


domain

Create an EIP-712 domain for signing CoW Protocol orders.
Returns a TypedDataDomain with:
  • name: "Gnosis Protocol"
  • version: "v2"
  • chainId: The EIP-155 chain ID
  • verifyingContract: The contract address

sign_order

Sign an order using EIP-712 typed data signing.

SigningScheme

EcdsaSignature


hash_order

Compute the 32-byte signing hash for an order.

compute_order_uid

Compute the unique identifier for an order.
Returns the 56-byte order UID as a hex string.

sign_order_cancellation

Sign a cancellation for a single order.

sign_order_cancellations

Sign cancellations for multiple orders at once.

Complete Example

Last modified on March 11, 2026