Skip to main content

Overview

The CoW Protocol Python SDK provides access to multiple blockchain networks through a Chain enum that configures chain IDs, network identifiers, and block explorer URLs.

Accessing Chain Information

Import the Chain enum to retrieve network properties:

Supported Networks

The SDK supports eight blockchain networks:

Chain Properties

Each Chain enum provides three properties:
  • chain_id — Returns the SupportedChainId enum value representing the numeric identifier.
  • name — Returns the network name as a string for display and configuration.
  • explorer — Returns the block explorer URL for transaction and address verification.

Usage Example

Complete example demonstrating chain specification in a token swap:

Retrieving All Supported Chains

Access the complete list using the SUPPORTED_CHAINS constant:
The SDK uses chain configuration internally to determine API endpoints, contract addresses, and network-specific parameters.
Last modified on March 17, 2026