Skip to main content

dApp Integration Guide

Learn how to integrate TeQoin L2 into your web application and enable users to interact with your smart contracts.
What You’ll Learn:
  • Connect wallets (MetaMask, WalletConnect)
  • Interact with smart contracts
  • Handle transactions
  • Listen to events
  • Best practices for production dApps

🎯 Integration Stack

Ethers.js v6

RecommendedModern, lightweight library

Web3.js

ClassicOriginal Ethereum library

Wagmi + Viem

React HooksModern React integration

🚀 Quick Start Template

A minimal dApp to get you started quickly.

Complete Working Example


Modern, lightweight library for Ethereum interaction.

Installation

Connect to TeQoin

Interact with Smart Contracts


🔷 Web3.js Integration

Classic Ethereum library, still widely used.

Installation

Basic Usage


⚛️ Wagmi + Viem Integration (React)

Modern React hooks for Ethereum.

Installation

Setup

React Components


🎨 Complete React dApp Example

A production-ready React + Wagmi dApp template:

🔐 Best Practices

Security

Performance

Use Read-Only Provider for View Functions
Cache Contract Instances

📱 Mobile Wallet Integration

WalletConnect Support


🎯 Testing Your dApp

Local Testing

Testnet Testing


📚 Additional Resources

Ethers.js Docs

Official Ethers.js documentation

Wagmi Docs

React hooks for Ethereum

Web3.js Docs

Web3.js documentation

Network Info

TeQoin network details

🎯 Next Steps

Deploy Your dApp

Host on Vercel, Netlify, or IPFS

Add Analytics

Track user interactions

Build Backend

Add off-chain components

Get Users

Market your dApp

🎉 Developer Documentation Complete!

You’ve completed all developer guides:
  • ✅ Network Information
  • ✅ Smart Contracts
  • ✅ Deploy Contract
  • ✅ Verify Contract
  • ✅ Integration Guide
Ready to build amazing dApps on TeQoin L2! 🚀