Skip to main content

Interface: ChainInfo

A chain on the network.

Probably we could use the viem chain definition, I think multicall3, and ensRegistry and the types defined there can be handy. But for now we are using a simplified version.

For a list of chains, see: https://github.com/wevm/viem/tree/main/src/chains/definitions

Properties

addressPrefix

Readonly addressPrefix: string

ERC-3770 address prefix

See https://eips.ethereum.org/EIPS/eip-3770

Defined in

external/cow-sdk/src/chains/types.ts:101


blockExplorer

Readonly blockExplorer: WebUrl

Block explorer of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:136


bridges

Optional Readonly bridges: WebUrl[]

Bridges of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:141


color

Readonly color: string

Main color of the chain, used for presentation purposes.

Defined in

external/cow-sdk/src/chains/types.ts:116


contracts

Readonly contracts: ChainContracts

Contracts of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:111


docs

Readonly docs: WebUrl

Documentation of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:126


eip155Label

Readonly eip155Label: string

EIP155 label of the chain. Field used for connecting to MetaMask.

Defined in

external/cow-sdk/src/chains/types.ts:89


id

Readonly id: number

The chain id.

Defined in

external/cow-sdk/src/chains/types.ts:79


isTestnet

Readonly isTestnet: boolean

Whether the chain is a testnet.

Defined in

external/cow-sdk/src/chains/types.ts:106


label

Readonly label: string

Label of the chain. Field used for display purposes.

Defined in

external/cow-sdk/src/chains/types.ts:84


Readonly logo: ThemedImage

Logo of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:121


nativeCurrency

Readonly nativeCurrency: TokenInfo

Native currency of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:94


rpcUrls

Readonly rpcUrls: Object

RPC URLs of the chain.

Index signature

▪ [key: string]: ChainRpcUrls

Type declaration

NameType
defaultChainRpcUrls

Defined in

external/cow-sdk/src/chains/types.ts:146


website

Readonly website: WebUrl

Website of the chain.

Defined in

external/cow-sdk/src/chains/types.ts:131