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:95
blockExplorer
• Readonly blockExplorer: WebUrl
Block explorer of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:130
bridges
• Optional Readonly bridges: WebUrl[]
Bridges of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:135
color
• Readonly color: string
Main color of the chain, used for presentation purposes.
Defined in
external/cow-sdk/src/chains/types.ts:110
contracts
• Readonly contracts: ChainContracts
Contracts of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:105
docs
• Readonly docs: WebUrl
Documentation of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:120
id
• Readonly id: number
The chain id.
Defined in
external/cow-sdk/src/chains/types.ts:78
isTestnet
• Readonly isTestnet: boolean
Whether the chain is a testnet.
Defined in
external/cow-sdk/src/chains/types.ts:100
label
• Readonly label: string
Label of the chain. Field used for display purposes.
Defined in
external/cow-sdk/src/chains/types.ts:83
logo
• Readonly logo: ThemedImage
Logo of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:115
nativeCurrency
• Readonly nativeCurrency: TokenInfo
Native currency of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:88
rpcUrls
• Readonly rpcUrls: Object
RPC URLs of the chain.
Index signature
▪ [key: string]: ChainRpcUrls
Type declaration
| Name | Type | 
|---|---|
default | ChainRpcUrls | 
Defined in
external/cow-sdk/src/chains/types.ts:140
website
• Readonly website: WebUrl
Website of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:125