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:77
blockExplorer
• Readonly
blockExplorer: WebUrl
Block explorer of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:112
bridges
• Optional
Readonly
bridges: WebUrl
[]
Bridges of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:117
color
• Readonly
color: string
Main color of the chain, used for presentation purposes.
Defined in
external/cow-sdk/src/chains/types.ts:92
contracts
• Readonly
contracts: ChainContracts
Contracts of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:87
docs
• Readonly
docs: WebUrl
Documentation of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:102
id
• Readonly
id: number
The chain id.
Defined in
external/cow-sdk/src/chains/types.ts:60
isTestnet
• Readonly
isTestnet: boolean
Whether the chain is a testnet.
Defined in
external/cow-sdk/src/chains/types.ts:82
label
• Readonly
label: string
Label of the chain. Field used for display purposes.
Defined in
external/cow-sdk/src/chains/types.ts:65
logo
• Readonly
logo: ThemedImage
Logo of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:97
nativeCurrency
• Readonly
nativeCurrency: TokenInfo
Native currency of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:70
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:122
website
• Readonly
website: WebUrl
Website of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:107