diff --git a/.changeset/itchy-papayas-push.md b/.changeset/itchy-papayas-push.md new file mode 100644 index 0000000000..20b1c878f8 --- /dev/null +++ b/.changeset/itchy-papayas-push.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added CoinEx Mainnet. diff --git a/src/chains/definitions/coinex.ts b/src/chains/definitions/coinex.ts new file mode 100644 index 0000000000..09c1f33fdd --- /dev/null +++ b/src/chains/definitions/coinex.ts @@ -0,0 +1,19 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const coinex = /*#__PURE__*/ defineChain({ + id: 52, + name: 'CoinEx Mainnet', + nativeCurrency: { name: 'cet', symbol: 'cet', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.coinex.net'], + }, + }, + blockExplorers: { + default: { + name: 'CoinEx Explorer', + url: 'https://www.coinex.net', + }, + }, + testnet: false, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 6ac3591a49..cfdbdc6223 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -79,6 +79,7 @@ export { chang } from './definitions/chang.js' export { chiliz } from './definitions/chiliz.js' export { chips } from './definitions/chips.js' export { classic } from './definitions/classic.js' +export { coinex } from './definitions/coinex.js' export { confluxESpace } from './definitions/confluxESpace.js' export { confluxESpaceTestnet } from './definitions/confluxESpaceTestnet.js' export { coreDao } from './definitions/coreDao.js'