Skip to main content

Interface: ApiContext

Define the context to use for the CoW Protocol API.

CoW Protocol is a set of smart contracts and off-chain services, deployed on multiple chains. Supported chains are:

  • Mainnet
  • Gnosis Chain
  • Sepolia

Each chain has it's own API, and each API has it's own base URL.

Options may be selectively overridden by passing a PartialApiContext to the constructor.

See

https://api.cow.fi/docs/#/

Properties

baseUrls

Optional baseUrls: ApiBaseUrls

URls that may be used to connect to this context.

Defined in

external/cow-sdk/src/common/configs.ts:69


chainId

chainId: SupportedChainId

The `chainId`` corresponding to this CoW Protocol API instance.

Defined in

external/cow-sdk/src/common/configs.ts:67


env

env: CowEnv

The environment that this context corresponds to.

Defined in

external/cow-sdk/src/common/configs.ts:68