diff --git a/.changeset/brown-pens-beam.md b/.changeset/brown-pens-beam.md new file mode 100644 index 0000000000..e9508aef88 --- /dev/null +++ b/.changeset/brown-pens-beam.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added taiko mainnet diff --git a/src/chains/definitions/taiko.ts b/src/chains/definitions/taiko.ts new file mode 100644 index 0000000000..ab1ac9f8c3 --- /dev/null +++ b/src/chains/definitions/taiko.ts @@ -0,0 +1,29 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +export const taiko = /*#__PURE__*/ defineChain({ + id: 167000, + name: 'Taiko Mainnet', + nativeCurrency: { + decimals: 18, + name: 'Ether', + symbol: 'ETH', + }, + rpcUrls: { + default: { + http: ['https://rpc.mainnet.taiko.xyz'], + webSocket: ['wss://ws.mainnet.taiko.xyz'], + }, + }, + blockExplorers: { + default: { + name: 'Taikoscan', + url: 'https://taikoscan.network', + apiUrl: 'https://taikoscan.network/api', + }, + }, + contracts: { + multicall3: { + address: '0xcb2436774C3e191c85056d248EF4260ce5f27A9D', + }, + }, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 92717e376f..d5372e8141 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -240,6 +240,7 @@ export { stratis } from './definitions/stratis.js' export { syscoin } from './definitions/syscoin.js' export { syscoinTestnet } from './definitions/syscoinTestnet.js' export { taraxa } from './definitions/taraxa.js' +export { taiko } from './definitions/taiko.js' export { taikoHekla } from './definitions/taikoHekla.js' export { taikoJolnir } from './definitions/taikoJolnir.js' export { taikoKatla } from './definitions/taikoKatla.js'