Developers Forum for XinFin XDC Network

ruslan wing
ruslan wing

Posted on

Step-by-Step Guide: Accessing Your XDC Network (XDC) Account with MetaMask

Step-by-Step Guide

Download MetaMask:

Create Your Wallet:
Follow the instructions to create and confirm your MetaMask wallet.

Connecting to XDC Network

Connect to XDC Main-net:

  • Click on the three dots in the top right corner of the MetaMask wallet and select ‘Settings’.

  • Go to the ‘Networks’ tab and select ‘Add Network’.

  • Enter the following details in the ‘Add Network’ form:

  1. Network Name: XDC-Main-net
  2. New RPC URL: https://erpc.xinfin.network
  3. ChainID: 50
  4. Symbol: XDC
  5. Block Explorer URL: https://explorer.xinfin.network
  • Click on ‘Save’.

Connect to XDC Apothem Test Network:

  • In the same ‘Networks’ tab, select ‘Add Network’ again.
  • Enter the following details for the Apothem Test Network:
  1. Network Name: XDC-Apothem
  2. New RPC URL: https://erpc.apothem.network
  3. ChainID: 51
  4. Symbol: TXDC
  5. Block Explorer URL: https://explorer.apothem.network
  • Click on ‘Save’.

Importing Your XDC Account

Import Your Account:

  • Go to ‘Home’ and select ‘Accounts’ from the menu.
  • Click on ‘Import Account’ and choose the ‘Private Key’ option.
  • Enter your XDC account’s private key and click ‘Import’.

Understanding the Difference: Main-net vs. Apothem Network

Main-net:

  • The main net is the primary network where actual transactions occur. The live environment is where XDC tokens hold real value and are used in real-world applications and transactions.
  • Full Node RPC: https://rpc.xinfin.network
  • Full Node Websocket: wss://ws.xinfin.network
  • Full Node RPC with 0x Prefix: https://erpc.xinfin.network
  • Full Node Websocket with 0x Prefix: wss://ews.xinfin.network
  • Archive Node RPC: https://arpc.xinfin.network
  • Archive Node Websocket: wss://aws.xinfin.network
  • Archive Node RPC with 0x Prefix: https://earpc.xinfin.network
  • Archive Node Websocket with 0x Prefix: wss://eaws.xinfin.network

Apothem Test Network:

  • The Apothem network is the test environment where developers can experiment, test smart contracts, and simulate transactions without using real XDC tokens. It mirrors the Main-net but is used purely for testing purposes.
  • Full Node RPC: https://rpc.apothem.network
  • Full Node Websocket: wss://ws.apothem.network
  • Full Node RPC with 0x Prefix: https://erpc.apothem.network
  • Full Node Websocket with 0x Prefix: wss://ews.apothem.network
  • Archive Node RPC: https://arpc.apothem.network
  • Archive Node Websocket: wss://aws.apothem.network
  • Archive Node RPC with 0x Prefix: https://earpc.apothem.network
  • Archive Node Websocket with 0x Prefix: wss://eaws.apothem.network

Conclusion

XDC represents a groundbreaking value exchange method poised to transform business transactions. Its secure and efficient platform enables users to transfer and store value at minimal fees and at high speed. Moreover, XDC fosters innovation by providing a marketplace for developers to create decentralized applications and products. With its permissionless and open-source blockchain protocol, XDC is set to become a game-changer in the digital currency landscape.

For deploying smart contracts, you can use the Remix IDE, which provides an easy and intuitive interface for smart contract development and deployment. Check it out here: https://remix.xinfin.network

Discussion (1)

Collapse
ram_gawas_721be0b970fbc4f profile image
ram gawas

XDCPay and Metamask are not working together in one browser.