Skip to content

Commit

Permalink
feat: add Excelon Mainnet (#2890)
Browse files Browse the repository at this point in the history
* Changeset Changes Commit

* Excelon Mainnet Chain definition

* Update excelonMainnet.ts

* Update excelonMainnet.ts

---------

Co-authored-by: jxom <[email protected]>
  • Loading branch information
excelon-team and jxom authored Oct 20, 2024
1 parent 5637837 commit 8e45821
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/hot-beans-admire.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

Added Excelon Mainnet chain.
23 changes: 23 additions & 0 deletions src/chains/definitions/excelonMainnet.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { defineChain } from '../../utils/chain/defineChain.js'

export const excelonMainnet = /*#__PURE__*/ defineChain({
id: 22052002,
name: 'Excelon Mainnet',
network: 'XLON',
nativeCurrency: {
decimals: 18,
name: 'Excelon',
symbol: 'xlon',
},
rpcUrls: {
default: {
http: ['https://edgewallet1.xlon.org'],
},
},
blockExplorers: {
default: {
name: 'Excelon explorer',
url: 'https://explorer.excelon.io',
},
},
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ export { elastos } from './definitions/elastos.js'
export { elastosTestnet } from './definitions/elastosTestnet.js'
export { electroneum } from './definitions/electroneum.js'
export { electroneumTestnet } from './definitions/electroneumTestnet.js'
export { excelonMainnet } from './definitions/excelonMainnet.js'
export { fantom } from './definitions/fantom.js'
export { fantomSonicTestnet } from './definitions/fantomSonicTestnet.js'
export { fantomTestnet } from './definitions/fantomTestnet.js'
Expand Down

0 comments on commit 8e45821

Please sign in to comment.