TrustRaja - AI-Powered On-Chain Transparency Engine
TrustRaja is a web-based platform that helps users instantly understand the trustworthiness and behavior of any blockchain wallet address. It uses Blockscout’s public blockchain data and ASI’s AI reasoning API to analyze wallet activity and summarize it in clear, human language.
The main goal of TrustRaja is to make blockchain transparency accessible and understandable for everyone - from crypto traders and NFT collectors to developers and DeFi users.
TrustRaja was built as a full-stack web application using Next.js (React + TypeScript), designed to be fast, lightweight, and AI-driven without relying on expensive backend infrastructure. The app combines Blockscout’s blockchain explorer APIs for transaction data and ASI’s powerful AI reasoning API to deliver wallet intelligence in a human-friendly format.
🧠 Integration Details 🔹 1. Blockscout Integration
The project uses Blockscout’s REST API (/api/v2/transactions?address=...) to fetch the most recent transactions of any wallet.
The data includes fields like hash, from_address, to_address, block_number, value, and timestamps.
This removes the need to maintain or run a blockchain node, keeping the system lightweight and scalable.
🔹 2. ASI AI Integration
Once transaction data is fetched, it’s sent to the ASI API.
ASI processes the data using its AI reasoning capabilities to produce:
Summaries (e.g., “This wallet is a long-term holder with consistent transaction history.”)
Behavior classifications (e.g., trader, investor, scam risk)
The AI response is then formatted and displayed in a friendly, informative UI.
🔹 3. Next.js API Routes
The backend logic (data fetching + AI call) is written in /pages/api/analyze.ts.
This ensures everything runs server-side within Vercel’s serverless infrastructure — secure and fast.
💡 Hacky or Clever Solutions
🧩 No Traditional Backend — Instead of building and hosting a backend server, all logic runs inside Next.js API routes, simplifying deployment and cost.
⚡ On-Demand AI Processing — The app doesn’t store or pre-process blockchain data; it fetches and analyzes it dynamically, saving computation time and infrastructure costs.
🔐 API Key Safety — ASI API keys are stored securely using Next.js environment variables, so they never leak to the client.
📊 Minimal Data Model — Only essential transaction data is processed to ensure performance and reduce unnecessary payload size.
🧰 Development Stack Summary
Framework: Next.js 15 (App Router + API Routes)
Language: TypeScript
Styling: Tailwind CSS
Blockchain Source: Blockscout REST API
AI Engine: ASI API
Deployment: Vercel
Testing: Postman (for API routes), local environment with npm run dev
🚀 Outcome
By combining open blockchain data with AI reasoning, TrustRaja delivers instant, understandable insights about any wallet — making blockchain transparency approachable for everyone. The integration of Blockscout and ASI allows users to trust what they see, without needing deep blockchain knowledge.

