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
  • Arbitrum One
  • Base
  • 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

backoffOpts

Optional backoffOpts: Partial<IBackOffOptions>

Defined in

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


baseUrls

Optional baseUrls: ApiBaseUrls

URls that may be used to connect to this context.

Defined in

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


chainId

chainId: SupportedChainId

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

Defined in

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


env

env: CowEnv

The environment that this context corresponds to.

Defined in

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


limiterOpts

Optional limiterOpts: RateLimiterOpts

Defined in

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