๐Ÿ”— Connecting to the QIE Blockchain

To interact with QIE Oracle contracts, your wallet or application must first connect to the QIE Layer 1 blockchain. Below are the steps for connecting using MetaMask and JavaScript (ethers.js).


๐ŸฆŠ Using MetaMask

You can manually add the QIE network to MetaMask:

  1. Open MetaMask

  2. Click "Add Network"

  3. Enter the following network details:

Network Name:       QIE Mainnet
RPC URL:            https://rpc5mainnet.qie.digital
Chain ID:           1990       
Currency Symbol:    QIE
Block Explorer URL: https://mainnet.qie.digital
  1. Click Save, then switch your wallet to the newly added QIE Mainnet.

โœ… Once added, youโ€™ll be able to sign transactions and interact with the QIE Oracle contracts directly from MetaMask.


๐Ÿ“ฆ Using JavaScript (ethers.js)

To connect your JavaScript or Node.js application to the QIE blockchain using ethers.js:

const { ethers } = require("ethers");

// Connect to the QIE blockchain via RPC
const provider = new ethers.JsonRpcProvider("https://rpc5mainnet.qie.digital");

console.log("Connected to QIE blockchain:", provider);

โœ… You can now use the provider to interact with smart contracts, read oracle data, send transactions, and more.

Last updated