diff --git a/.changeset/stupid-pears-wink.md b/.changeset/stupid-pears-wink.md new file mode 100644 index 0000000000..b58519071b --- /dev/null +++ b/.changeset/stupid-pears-wink.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Ape Chain. diff --git a/src/chains/definitions/apeChain.ts b/src/chains/definitions/apeChain.ts new file mode 100644 index 0000000000..9ca4b4d748 --- /dev/null +++ b/src/chains/definitions/apeChain.ts @@ -0,0 +1,33 @@ +import { defineChain } from '../../utils/chain/defineChain.js' + +const sourceId = 42_161 // Arbitrum One + +export const apeChain = /*#__PURE__*/ defineChain({ + id: 33139, + name: 'Ape Chain', + nativeCurrency: { + name: 'ApeCoin', + symbol: 'APE', + decimals: 18, + }, + rpcUrls: { + default: { + http: ['https://rpc.apechain.com/http'], + webSocket: ['wss://rpc.apechain.com/ws'], + }, + }, + blockExplorers: { + default: { + name: 'Apescan', + url: 'https://apescan.io', + apiUrl: 'https://api.apescan.io', + }, + }, + contracts: { + multicall3: { + address: '0xcA11bde05977b3631167028862bE2a173976CA11', + blockCreated: 20889, + }, + }, + sourceId, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 58be9dcbe9..962e84ae8b 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -8,6 +8,7 @@ export { alienxHalTestnet } from './definitions/alienXHalTestnet.js' export { ancient8 } from './definitions/ancient8.js' export { ancient8Sepolia } from './definitions/ancient8Sepolia.js' export { anvil } from './definitions/anvil.js' +export { apeChain } from './definitions/apeChain.js' export { apexTestnet } from './definitions/apexTestnet.js' export { arbitrum } from './definitions/arbitrum.js' export { arbitrumGoerli } from './definitions/arbitrumGoerli.js'