Quick Start
Prerequisites
Before you begin, make sure you have:
MetaMask browser extension installed
Basic familiarity with Ethereum and Web3
Node.js installed (for code examples)
A few minutes to spare!
Step 1: Connect to OPN Testnet
Chain Configuration
Open MetaMask and click the network dropdown (usually shows "Ethereum Mainnet")
Click "Add Network" at the bottom
Click "Add a network manually"
Enter these details:
Network Name
OPN Testnet
RPC URL
https://testnet-rpc.iopn.tech
Chain ID
984(0x3d8)
Currency Symbol
IOPN
Block Explorer
Faucet
Click "Save"
Verify Connection
Once connected, you should see "OPN Testnet" in your network dropdown. Test the connection:
Step 2: Get Test Tokens
You'll need test IOPN tokens to pay for gas fees:
Web Faucet
Visit https://faucet.iopn.tech
Connect your wallet or enter your address
Complete the CAPTCHA
Click "Request Tokens"
You should receive tokens within a few seconds. Check your balance in MetaMask!
Step 3: Make Your First Transaction
Let's test that everything is working by sending a transaction.
Using MetaMask UI
In MetaMask, click "Send"
Enter recipient address
Enter amount:
2IOPNClick "Next"
Review the gas fee (should be very low!)
Click "Confirm"
Your transaction should confirm within 1-2 seconds!
Using Ethers.js
Using Viem.js
Using Web3.js-⚠️ Note: Web3.js has been sunset, but we understand some developers still use it. Please use with caution and consider migrating to actively maintained alternatives like Ethers.js or Viem for production applications.
Step 4: Deploy Your First Smart Contract
Now let's deploy a simple smart contract!
Simple Storage Contract
Deploy Using Remix
Open Remix IDE
Create a new file:
SimpleStorage.solPaste the contract code above
Go to "Solidity Compiler" tab and compile (Ctrl/Cmd + S)
Go to "Deploy & Run Transactions" tab
Change Environment to "Injected Provider - MetaMask"
Ensure OPN Testnet is selected in MetaMask
Set initial value (e.g.,
42)Click "Deploy"
Confirm transaction in MetaMask
Deploy Using Hardhat
Deploy with:
Step 5: Interact with Your Contract
Using Ethers.js
Quick Reference
Network Details
Common Commands
Congratulations! You've successfully:
✅ Connected to OPN Chain
✅ Received test tokens
✅ Sent your first transaction
✅ Deployed a smart contract
Get Support
Troubleshooting
Transaction Stuck?
Ensure gas price is at least 7 Gwei
Check if you have enough IOPN for gas
Try resending with slightly higher gas
Can't Connect to Network?
Verify RPC URL:
https://testnet-rpc.iopn.techCheck Chain ID is exactly
984Try clearing MetaMask cache
Contract Deployment Failed?
Ensure contract compiles without errors
Check account has sufficient balance
Verify gas limit is appropriate
Ready for more? Check out our Discord for community events and learning about OPN Chain!
Last updated
