diff --git a/.changeset/gorgeous-badgers-listen.md b/.changeset/gorgeous-badgers-listen.md new file mode 100644 index 00000000..3bebfe4e --- /dev/null +++ b/.changeset/gorgeous-badgers-listen.md @@ -0,0 +1,5 @@ +--- +'@wagmi/chains': patch +--- + +Added Linea Testnet Support diff --git a/packages/chains/src/index.ts b/packages/chains/src/index.ts index 88eefa2b..9aa363c5 100644 --- a/packages/chains/src/index.ts +++ b/packages/chains/src/index.ts @@ -38,6 +38,7 @@ export { gnosisChiado } from './gnosisChiado' export { hardhat } from './hardhat' export { harmonyOne } from './harmonyOne' export { klaytn } from './klaytn' +export { lineaTestnet } from './lineaTestnet' export { localhost } from './localhost' export { mainnet } from './mainnet' export { metis } from './metis' diff --git a/packages/chains/src/lineaTestnet.ts b/packages/chains/src/lineaTestnet.ts new file mode 100644 index 00000000..67061be7 --- /dev/null +++ b/packages/chains/src/lineaTestnet.ts @@ -0,0 +1,25 @@ +import { Chain } from './types' + +export const lineaTestnet = { + id: 59140, + name: 'Linea Testnet', + network: 'linea-testnet', + nativeCurrency: { name: 'Ether', symbol: 'ETH', decimals: 18 }, + rpcUrls: { + default: { + http: ['https://rpc.goerli.linea.build'], + webSocket: ['wss://rpc.goerli.linea.build'], + }, + public: { + http: ['https://rpc.goerli.linea.build'], + webSocket: ['wss://rpc.goerli.linea.build'], + }, + }, + blockExplorers: { + default: { + name: 'BlockScout', + url: 'https://explorer.goerli.linea.build', + }, + }, + testnet: true, +} as const satisfies Chain