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:103
blockExplorer
• Readonly
blockExplorer: WebUrl
Block explorer of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:138
bridges
• Optional
Readonly
bridges: WebUrl
[]
Bridges of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:143
color
• Readonly
color: string
Main color of the chain, used for presentation purposes.
Defined in
external/cow-sdk/src/chains/types.ts:118
contracts
• Readonly
contracts: ChainContracts
Contracts of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:113
docs
• Readonly
docs: WebUrl
Documentation of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:128
eip155Label
• Readonly
eip155Label: string
EIP155 label of the chain. Field used for connecting to MetaMask.
Defined in
external/cow-sdk/src/chains/types.ts:91
id
• Readonly
id: number
The chain id.
Defined in
external/cow-sdk/src/chains/types.ts:81
isTestnet
• Readonly
isTestnet: boolean
Whether the chain is a testnet.
Defined in
external/cow-sdk/src/chains/types.ts:108
isZkSync
• Optional
Readonly
isZkSync: boolean
Whether the chain is zkSync based.
Defined in
external/cow-sdk/src/chains/types.ts:156
label
• Readonly
label: string
Label of the chain. Field used for display purposes.
Defined in
external/cow-sdk/src/chains/types.ts:86
logo
• Readonly
logo: ThemedImage
Logo of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:123
nativeCurrency
• Readonly
nativeCurrency: TokenInfo
Native currency of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:96
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:148
website
• Readonly
website: WebUrl
Website of the chain.
Defined in
external/cow-sdk/src/chains/types.ts:133