๐ 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:
Open MetaMask
Click "Add Network"
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
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