diff --git a/.changeset/flat-penguins-sort.md b/.changeset/flat-penguins-sort.md new file mode 100644 index 0000000000..1b1594bf49 --- /dev/null +++ b/.changeset/flat-penguins-sort.md @@ -0,0 +1,5 @@ +--- +"viem": patch +--- + +Added Neo X Mainnet. diff --git a/src/chains/definitions/neoxMainnet.ts b/src/chains/definitions/neoxMainnet.ts new file mode 100644 index 0000000000..e8f7865e85 --- /dev/null +++ b/src/chains/definitions/neoxMainnet.ts @@ -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, +}) diff --git a/src/chains/index.ts b/src/chains/index.ts index 7dc30cc260..4ff241fed2 100644 --- a/src/chains/index.ts +++ b/src/chains/index.ts @@ -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'