Skip to main content

Connecting to the Web3 network

In this class, we provide two endpoints for you to deploy your smart contracts to the etherdata blockchain network.

Network details

------
Network NameChain IDRPC URL
Production endpoint3101https://rpc.etdchain.net
Test endpoint8348https://rpc.debugchain.net

Connect to the endpoint using metamask

Open metamask

follow the diagram below to open metamask and add a custom RPC. metamask

Add a custom RPC

metamask

Network Name: Etherdata Network
New RPC URL: https://rpc.etdchain.net
Chain ID: 3101
Symbol: ETD
Block Explorer URL: https://stats.etdchain.net

Connect to the network

Open your metamask again, and you will see the network you just added.

metamask

metamask

Connect to the endpoint using ethers.js

Using the following codesandbox example to connect to the etherdata network.

Question: How to get the user's balance using ethers.js?