Skip to content

Conversation

@ruhil6789
Copy link

@ruhil6789 ruhil6789 commented Nov 27, 2025

Description

This PR adds support for Xone Mainnet network in MetaMask, enabling users to connect to and interact with the Xone blockchain.

What is the reason for the change?

Xone Mainnet is a new EVM-compatible blockchain that users want to access through MetaMask. Currently, users cannot easily add or switch to Xone Mainnet network without manual configuration.

What is the improvement/solution?

This PR integrates Xone Mainnet as a featured network in MetaMask, making it easily accessible to users through the network selector. The implementation includes:

  • Chain ID: 0xe89 (3721 in decimal) ✅ Verified from RPC endpoint
  • RPC Endpoint: https://rpc.xone.org
  • Currency Symbol: XOC (Xone Coin)
  • Display Name: "Xone Mainnet"
  • Block Explorer: https://xonescan.com
  • Network Images: Added xone.svg and xone-native.svg for network branding

The network is added to FEATURED_RPCS, which means it will appear in the popular networks list, making it easy for users to discover and add.

Files Changed:

  • shared/constants/network.ts - Added Xone network constants, chain ID (0xe89 = 3721), RPC URL, currency symbol, display name, and image URLs
  • shared/constants/network.test.ts - Added unit tests to verify Xone network configuration
  • app/images/xone.svg - Network logo image
  • app/images/xone-native.svg - Native token logo image

Open in GitHub Codespaces

Changelog

CHANGELOG entry: Added Xone Mainnet as a featured network option in the network selector

Related issues

Fixes:

Manual testing steps

  1. Pull this branch locally
  2. Build the extension using yarn start or yarn dist
  3. Load the extension in Chrome/Firefox following the setup instructions
  4. Open MetaMask and click on the network selector (top of the extension)
  5. Look for "Xone Mainnet" in the popular networks list
  6. Click on "Xone Mainnet" to add it
  7. Verify the network details:
    • Network name shows as "Xone Mainnet"
    • Currency symbol shows as "XOC"
    • Chain ID is 0xe89 (3721 in decimal) ✅ Verified from RPC
    • RPC URL is https://rpc.xone.org
    • Block explorer is https://xonescan.com
  8. Switch to Xone Mainnet network
  9. Verify the network logo appears correctly in the network selector
  10. Verify the native token logo appears correctly when viewing account balance
  11. Confirm the network loads properly and can connect to the blockchain

Screenshots/Recordings

image image

Before

Xone Mainnet was not available in the network selector.

After

Xone Mainnet appears in the popular networks list and can be easily added by users.

Pre-merge author checklist

  • I've followed MetaMask Contributor Docs and MetaMask Extension Coding Standards.

  • I've completed the PR template to the best of my ability

  • I've included tests if applicable

    • Added unit tests in shared/constants/network.test.ts to verify:
      • Xone network appears in FEATURED_RPCS with correct chain ID (0xe89)
      • RPC URL is correctly set to https://rpc.xone.org
      • Network does not use Infura (uses custom RPC endpoint)
  • I've documented my code using JSDoc format if applicable

    • Network constants follow existing code patterns and conventions
  • I've applied the right labels on the PR (see labeling guidelines). Not required for external contributors.

Pre-merge reviewer checklist

  • I've manually tested the PR (e.g. pull and build branch, run the app, test code being changed).

  • I confirm that this PR addresses all acceptance criteria described in the ticket it closes and includes the necessary testing evidence such as recordings and or screenshots.

- Add XONE chain ID (0xe89)
- Add Xone Mainnet to FEATURED_RPCS with RPC URL https://rpc.xone.org
- Add XONE currency symbol (XOC)
- Add Xone display name and image URLs
- Add unit tests for Xone network configuration
@github-actions
Copy link
Contributor

github-actions bot commented Nov 27, 2025

CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes.

@metamaskbot metamaskbot added external-contributor INVALID-PR-TEMPLATE PR's body doesn't match template labels Nov 27, 2025
- Add XONE chain ID (0xe89)
- Add Xone Mainnet to FEATURED_RPCS with RPC URL https://rpc.xone.org
- Add XONE currency symbol (XOC)
- Add Xone display name and image URLs
- Add unit tests for Xone network configuration
INJECTIVE: '0x6f0',
MONAD: '0x8f',
HYPE: '0x3e7',
XONE: '0xe89',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Chain ID hex value may not match intended decimal

The PR description states the chain ID is 0xe89 (3729 in decimal), but 0xe89 actually equals 3721 in decimal, not 3729. If the intended Xone Mainnet chain ID is 3729, the hex value in the code should be 0xe91 instead of 0xe89. Using an incorrect chain ID would prevent users from connecting to the actual Xone Mainnet network.

Fix in Cursor Fix in Web

@ruhil6789
Copy link
Author

I have read the CLA Document and I hereby sign the CLA

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants