Chainfluence
Trustless influencer marketing — escrow funds released automatically when Chainlink CRE verifies the tweet.
What it is
Chainfluence is a decentralized Twitter/X advertising marketplace that removes trust from the advertiser-influencer relationship.
The problem: In traditional influencer marketing, advertisers pay upfront with no guarantee the influencer will post the right content, keep it up, or hit the agreed metrics. Disputes are common, platforms take large cuts, and there's no transparency.
Chainfluence solves this with a trustless pipeline:
- Advertisers deposit tokens into an on-chain escrow contract (AdEscrowV2) with deal criteria — required content, minimum views, post duration, and a deadline.
- Influencers verify their humanity via World ID (Orb-level proof) to prevent bot farms, then accept deals and post the agreed tweet. The tweet URL is stored on-chain.
- A Chainlink CRE workflow running on the DON reads the deal criteria directly from the smart contract (the immutable source of truth), fetches live tweet data from the X API v2 with multi-node consensus, and verifies: content hash integrity (keccak256 match), edit detection, post duration, and view count.
- The workflow submits a signed fulfillment report via the Keystone forwarder — the contract automatically releases funds to the influencer or refunds the advertiser.
No middleman decides the outcome. The contract holds the funds, the DON verifies the data, and the rules are enforced on-chain.
How it Works
Smart Contract: Solidity with Foundry, OpenZeppelin (SafeERC20, ReentrancyGuard, Ownable). AdEscrowV2 manages the full deal lifecycle (Funded → Accepted → Completed/Refunded) and integrates with Chainlink's Keystone forwarder via IReceiverTemplate to process CRE reports.
CRE Workflow: Written in Go, compiled to WASM, deployed on the Chainlink DON. Uses the CRE SDK for on-chain reads (getDeal via EVM client), consensus HTTP calls to the X API v2 (median aggregation for views, identical match for content), and signed report generation (ECDSA/keccak256). The workflow reads all deal criteria from the contract — no off-chain data is trusted.
Backend: TypeScript with Hono framework on Vercel Serverless. Neon Postgres with Drizzle ORM. SIWE (Sign-In with Ethereum) authentication. Triggers CRE workflows via signed JWTs to the CRE gateway. Syncs deal state from the contract on read. Role-based authorization on all mutation endpoints.
Frontend: React with Vite, wagmi v2, RainbowKit for wallet connection, shadcn/ui components. World ID IDKit integration for influencer verification. Full marketplace UI with campaign creation, deal lifecycle management, and on-chain transaction tracking.
Identity: World ID Orb-level verification for Sybil resistance — one human per channel, enforced via nullifier hash uniqueness.
Deployed on Ethereum Sepolia with Vercel hosting for frontend and backend.
Links
Created by
- Ardeshir Gholami
- Hosein Sameie
- Aria Naraghi