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 Name | Chain ID | RPC URL |
Production endpoint | 3101 | https://rpc.etdchain.net |
Test endpoint | 8348 | https://rpc.debugchain.net |
Connect to the endpoint using metamask
Open metamask
follow the diagram below to open metamask and add a custom RPC.
Add a custom RPC
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.
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?