diff --git a/.changeset/real-hairs-walk.md b/.changeset/real-hairs-walk.md new file mode 100644 index 0000000000..d8ae9f4b01 --- /dev/null +++ b/.changeset/real-hairs-walk.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Corn Testnet. diff --git a/src/chains/definitions/cornTestnet.ts b/src/chains/definitions/cornTestnet.ts new file mode 100644 index 0000000000..64fb0d10b1 --- /dev/null +++ b/src/chains/definitions/cornTestnet.ts @@ -0,0 +1,32 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +const sourceId = 11_155_111 // sepolia + +export const cornTestnet = /*#__PURE__*/ defineChain({ + id: 21_000_001, + name: 'Corn Testnet', + nativeCurrency: { + decimals: 18, + name: 'Bitcorn', + symbol: 'BTCN', + }, + rpcUrls: { + default: { http: ['https://rpc.ankr.com/corn_testnet'] }, + }, + blockExplorers: { + default: { + name: 'Corn Testnet Explorer', + url: 'https://testnet.cornscan.io', + apiUrl: + 'https://api.routescan.io/v2/network/testnet/evm/21000001/etherscan/api', + }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 4886, + }, + }, + testnet: true, + sourceId, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 9b2a8fe062..780bb9a899 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -88,6 +88,7 @@ export { confluxESpace } from './definitions/confluxESpace.js' export { confluxESpaceTestnet } from './definitions/confluxESpaceTestnet.js' export { coreDao } from './definitions/coreDao.js' export { corn } from './definitions/corn.js' +export { cornTestnet } from './definitions/cornTestnet.js' export { crab } from './definitions/crab.js' export { cronos } from './definitions/cronos.js' export { cronosTestnet } from './definitions/cronosTestnet.js'