get_cowswap_api

Documentation for eth_defi.cow.api.get_cowswap_api function.

get_cowswap_api(chain_id)

Get CowSwap API endpoint for given chain ID.

Parameters

chain_id (int) – Chain ID to get the endpoint for

Returns

CowSwap API endpoint URL

Raises

KeyError – If chain is not supported by CowSwap

Return type

str