Decentralized E-Commerce Platform - Wallet is Identity. Buy anything (Digital/Physical) without accounts. AI-powered fraud detection, escrow, X402 payments.
Quilvion-AI-Agent-Commerce is an early-stage JavaScript project in the AI payments / x402 ecosystem. It currently has 1 GitHub stars and 0 forks.
Quilvion is a decentralized e-commerce platform where users can buy and sell products using only their wallet — eliminating the need for traditional accounts.
🎯 Built for The Synthesis Hackathon (AI × Crypto)
Traditional e-commerce platforms suffer from multiple critical issues:
Quilvion-dAPP revolutionizes this model by making:
Wallet = Identity
Users simply connect their wallet and can interact with the entire marketplace without creating accounts.
Connect Wallet → Automatic Login
Your Web3 wallet becomes your identity.
Users can buy anything using the same wallet:
All purchases occur within a single decentralized ecosystem.
Sensitive personal information (address, phone, name):
Merchants:
Security layers include:
Today’s e-commerce:
Quilvion solves this by:
| Component | Technology |
|---|---|
| Network | SKALE Testnet |
| Chain ID | 324705682 |
| Smart Contracts | Solidity ^0.8.20 |
| Framework | Hardhat |
| Payment Standard | X402 |
| Token | USDC (Mock) |
| Component | Technology |
|---|---|
| Framework | FastAPI |
| Language | Python |
| Database | PostgreSQL |
| Blockchain Interaction | Web3.py |
| Event Listener | Python Worker |
| Component | Technology |
|---|---|
| Framework | React + Vite |
| State Management | Redux Toolkit |
| Web3 Integration | ethers.js |
| Styling | Custom CSS |
| Component | Technology |
|---|---|
| Model | XGBoost Classifier |
| Features | 28 PCA features + Amount + Time |
| Output | Fraud risk score (0-100) |
| Integration | Real-time order risk analysis |
Skale-dAPP/
contracts/ ├── core/ │ └── CommerceCore.sol │ ├── config/ │ └── ConfigManager.sol │ ├── security/ │ └── Roles.sol │ ├── libraries/ │ └── PaymentLib.sol │ └── mocks/ └── ERC20Mock.sol
backend/ ├── main.py ├── listener.py ├── fraud_model.pkl ├── requirements.txt └── uploads/
frontend/ ├── src/ │ ├── components/ │ ├── pages/ │ ├── services/ │ ├── store/ │ ├── hooks/ │ ├── abi/ │ └── assets/ │ └── public/
scripts/ test/ ignition/
.env hardhat.config.js
Main platform contract responsible for:
Manages platform configuration:
Role-based access system.
| Role | Permission |
|---|---|
| DEFAULT_ADMIN_ROLE | Full platform control |
| ADMIN_ROLE | Merchant/product/order approvals |
| BOT_ROLE | AI bot risk scoring |
Handles:
User connects wallet
User selects product
Smart contract validates:
daily spending limit
product type
amount threshold
USDC transferred to contract
| Scenario | Result |
|---|---|
| Digital + Small Amount | Auto Complete |
| Digital + Large Amount | Escrow + Admin Review |
| Physical Product | Escrow Hold |
1️⃣ Smart contract emits OrderCreated event
2️⃣ Event Listener detects the event
3️⃣ Transaction data sent to AI service
4️⃣ AI calculates fraud probability
5️⃣ Risk score assigned on-chain
Smart Contract │ ▼ Event Listener (listener.py) │ ▼ AI Service (/risk endpoint) │ ▼ Risk Score Calculated │ ▼ setRiskScore() Transaction │ ▼ Auto Approval Logic
| Field | Description |
|---|---|
| wallet_address | Primary Key |
| username | Unique |
| profile_image | Optional |
| created_at | Timestamp |
| Field | Description |
|---|---|
| wallet_address | Primary Key |
| name | Merchant Name |
| company_name | Company |
| approved | Boolean |
| Field | Description |
|---|---|
| id | Primary Key |
| wallet_address | Merchant |
| title | Product name |
| price | Product price |
| product_type | Digital / Physical |
| Field | Description |
|---|---|
| id | Primary Key |
| order_id_onchain | Unique |
| buyer_wallet | Wallet |
| seller_wallet | Wallet |
| amount | Order value |
| risk_score | Fraud score |
CommerceCore 0xe7F35fD681a2257665177bf98F05c98F41319D30
PRIVATE_KEY=your_private_key RPC_URL=https://testnet.skale.network/
COMMERCE_ADDRESS=0xe7F35fD681a2257665177bf98F05c98F41319D30
DATABASE_URL=postgresql://user:pass@localhost/skale_db
AI_URL=http://localhost:8000/risk
ADMIN_WALLET=0xbB7266164241E249DD7EcaD53ED59474015685eA
Supports messaging between:
Features include:
Quilvion-dAPP represents a paradigm shift in e-commerce.
By making wallet the primary identity, the platform:
AI-driven fraud detection ensures security without sacrificing decentralization.
The demo video and live app are based on an earlier deployment of the same system.
For this hackathon, the smart contracts have been re-deployed using a new wallet, and the repository reflects the latest version of the project.
Functionality and architecture remain consistent across both deployments.
Developer
Mustak Aalam
🎥 Demo
https://youtu.be/Y8hazlUdoXQ
Built with ❤️
Your AI trading terminal assistant for US stocks, commodities, forex, and crypto.
The agent-native LLM router for autonomous agents. 55+ models (8 free), <1ms local routing, USDC payments on Base & Solana via x402.
A local-first AI agent with persistent memory, emotional intelligence, and a peer-to-peer skills economy.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
The trust layer for agent-to-agent commerce — natural-language mandates, ERC-7710 delegated permissions, x402 payments, escrow, and dispute resolution as one open, catch-all Agent Skill / Claude Code plugin.