ConfluxScan Explorer UI – Build a React Dashboard for Conflux Testnet Accounts
Are you building on the Conflux blockchain and looking for a clean, responsive way to interact with testnet data? In this blog, I’ll walk you through a modern React-based Conflux Explorer UI I built — a simple yet powerful dashboard that connects to the ConfluxScan API and visualizes account data like normal transactions, internal calls, token transfers, and balances.
This tool is perfect for developers who want to test, debug, or showcase Conflux Testnet activity using a user-friendly interface.
What is the Conflux Explorer UI?
The ConfluxScan Explorer UI is a frontend React application that lets users input any Conflux Testnet address and fetch all relevant data tied to it. Once logged in, users can explore:
- Normal Transactions (user-to-user or contract interactions)
- Internal Transactions (contract-to-contract or system-level calls)
- Token Transfers (ERC-20 transfers)
- Account Balance (converted from Drip to readable CFX)
All this is displayed in a clean and mobile-friendly interface, with direct links to the official Conflux Testnet Explorer for more detailed views.
Key Features
Login with Address
Users start by entering any valid Conflux Testnet wallet address. This kicks off API calls to load all the account data.
Sidebar with Account Overview
The left panel includes:
- Account identicon and address (with a copy button)
- Real-time CFX balance
- Quick links:
Faucet (Get free Testnet CFX)
Explorer (Official Conflux Testnet Explorer)
-
Logout button to clear session
Tabbed Main Area
Users can switch between three types of on-chain activities:
- Normal Transactions
- Internal Transactions
- Token Transfers
Each tab displays the data in a styled and responsive table, and every entry includes a “View” button linking to its page on the official explorer.
Responsive Design
Built with Tailwind CSS, the app works seamlessly across desktop and mobile devices.
APIs Used (Powered by ConfluxScan)
The project uses public API endpoints provided by ConfluxScan. Here’s a breakdown:
1. Normal Transactions
Returns:
List of external transactions including:
hash
from
to
value
timeStamp
2. Internal Transactions
Returns:
Contract interactions and internal value transfers:
hash
from
to
value
timeStamp
3. Token Transfers
Returns:
Token-related events including:
tokenSymbol
from
to
value
hash
4. Account Balance
Endpoint
https://evmapi-testnet.confluxscan.net/api?module=account&action=balance&address={address}
Returns:
Balance in Drip (smallest unit of CFX).
Conversion: 1 CFX = 10¹⁸ Drip
5. Faucet
URL: https://efaucet.confluxnetwork.org/
Used to claim free CFX for Testnet transactions.
6. Explorer
URL: https://evmtestnet.confluxscan.net/
Official Conflux Testnet Explorer to view all transaction details.
UI Overview
➤ Login Screen
User enters their Conflux Testnet wallet address to access the dashboard.
➤ Sidebar
Displays:
- Identicon
- Wallet Address with copy button
- Real-time CFX Balance
- Faucet link
- Explorer link
- Logout option
➤ Tab View
Main area is divided into three tabs:
- Normal Transactions
- Internal Transactions
- Token Transfers
Each tab displays a neatly formatted table with pagination-ready structure. Each transaction includes sender, receiver, value, and a timestamp — along with a “View” button to inspect the transaction on the official explorer.
Tech Stack
- Framework: React
- Styling: Tailwind CSS
- API Source: ConfluxScan API
- UI Components: React Icons, responsive tables, and conditional render logic for loading/errors
Watch the Tutorial
Prefer a visual walkthrough?
Check out the full video tutorial here:
Watch on YouTube
Conclusion
This Conflux Explorer UI is a great example of how to build blockchain-integrated frontends using public APIs. It can be a valuable tool for developers to test and debug contracts or just monitor account activity with ease. You can also extend this further with:
- NFT transaction tracking
- Smart contract call history
- Graphical analytics
Let me know what you think, and feel free to fork the code for your own projects.
Happy BUIDLing!