Skip to content

Commit

Permalink
feat: add Neo X Mainnet (#3145)
Browse files Browse the repository at this point in the history
feat: Add Neo X Mainnet
  • Loading branch information
mialbu authored Dec 21, 2024
1 parent 6ec6ad3 commit 569a325
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/flat-penguins-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"viem": patch
---

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

export const neoxMainnet = /*#__PURE__*/ defineChain({
id: 47763,
name: 'Neo X Mainnet',
nativeCurrency: { name: 'Gas', symbol: 'GAS', decimals: 18 },
rpcUrls: {
default: {
http: [
'https://mainnet-1.rpc.banelabs.org',
'https://mainnet-2.rpc.banelabs.org',
],
},
},
blockExplorers: {
default: {
name: 'Neo X - Explorer',
url: 'https://xexplorer.neo.org',
},
},
testnet: false,
})
1 change: 1 addition & 0 deletions src/chains/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -290,6 +290,7 @@ export { nahmii } from './definitions/nahmii.js'
export { nautilus } from './definitions/nautilus.js'
export { neonDevnet } from './definitions/neonDevnet.js'
export { neonMainnet } from './definitions/neonMainnet.js'
export { neoxMainnet } from './definitions/neoxMainnet.js'
export { nexi } from './definitions/nexi.js'
export { nexilix } from './definitions/nexilix.js'
export { oasisTestnet } from './definitions/oasisTestnet.js'
Expand Down

0 comments on commit 569a325

Please sign in to comment.