ChainLens
Live on Base Sepolia

The Payment Layer
for the Agent Economy

Autonomous AI agents can now discover, inspect, and pay for verified APIs with a wallet-native flow. Browse live listings, check reliability signals, then settle on Base only after the seller response succeeds.

agent.js — ChainLens quickstart
// Agent-native API purchase: discover → inspect → call
const listings = await chainLens.discover({ q: "defillama" });
// → [{ listingId: "3", priceUsdc: "0.050000 USDC", ... }]
const detail = await chainLens.inspect({ listing_id: "3" });
const out = await chainLens.call({ listing_id: "3", amount: "50000", inputs: { protocol: "uniswap" } });
// Gateway executes seller → settles on Base only on success
✓ Response received · Safety checks passed · Market settled
~3-6s
Inspect → Settle
0
API Accounts Needed
x402
Gateway Path
Base
Settlement Layer

Agents can act.
But they can't pay.

The rise of autonomous AI agents exposes a fundamental gap in today's API economy. Agents are powerful — but economically paralyzed.

🔐

Centralized API Access

Every API requires an account, API keys, and human-managed credits. An autonomous agent cannot create an account or hold a credit card.

💸

No Agent-Native Payments

Existing payment rails require human identity. Agents have wallets — but there's nowhere to spend them on APIs.

🎲

Unverified API Quality

Open API marketplaces have no trust layer. Agents risk paying for endpoints that are down, slow, or outright fake.

agent.py — Current Reality
# ❌ What happens when an agent tries to use an API today
agent@autonomous:~$ curl -X POST https://api.example.com/analyze \
-H "Authorization: Bearer ???"
{"error": "401 Unauthorized — Please sign up at example.com"}
# Agent has 10 ETH in its wallet. The API wants a credit card.
# Agent is stuck. Economy is locked. Opportunity is lost.
agent@autonomous:~$ Task failed. Human intervention required.

From request to result
in one wallet-native flow

ChainLens connects listing discovery, pre-call inspection, and Base settlement through a transparent x402 buyer flow.

01
Discover
Agent queries live listings — every entry is ChainLens-reviewed before going public.
02
Inspect
Before spending, the agent reads schemas, examples, latency, and recent failures.
03
Sign
Buyer signs a USDC ReceiveWithAuthorization for the chosen listing.
04
Execute
Gateway calls the seller API and applies policy + schema checks.
05
Settle
Success settles on ChainLensMarket. Failure drops the auth so no USDC moves.
agent.js — With ChainLens
// ✅ Wallet-native agent flow
const listings = await fetch('https://chainlens.pelicanlab.dev/api/market/listings?q=weather');
// → [{ listingId: "7", metadata, stats, score }]
const detail = await fetch('https://chainlens.pelicanlab.dev/api/market/listings/7');
// → inspect schemas, examples, and recent policy rejects
await fetch('https://chainlens.pelicanlab.dev/api/x402/7?city=seoul', { headers: { 'X-Payment': signedAuth } });
// Gateway executes seller → settles only on success
✓ Seller response delivered · Settlement tx returned

Three layers.
One current flow.

ChainLens separates concerns cleanly — on-chain security, off-chain execution, and pre-purchase trust signals.

🔗

Smart Contract (Market Layer)

ChainLensMarket on Base handles listing state, gateway settlement, and seller claims. Funds only move on successful settlement.

⚙️

Gateway (Orchestration Layer)

Serves market discovery, runs seller calls, validates responses, and triggers settlement — connecting wallet payment to real API execution.

🛍️

Curated Marketplace

Every listing exposes metadata, example payloads, and recent quality signals. Buyers can inspect before they spend.

🤖

Agent SDK (Buyer Layer)

Any agent with an EVM wallet can use standard HTTP, MCP, or custom x402 signing. No SDK lock-in.

ChainLensMarket.sol — settlement core
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.28;
struct Listing {
address owner;
address payout;
string metadataURI;
bool active;
}
function settle(uint256 listingId, bytes32 jobRef)
external onlyGateway {
// pull USDC with signed auth, credit seller, emit Settled
}
function claim()
external {
// seller withdraws accrued USDC
}

Built for the
agent-native future

Every design decision optimizes for autonomous agents as first-class economic actors.

01 · Agent-First

No Human Required

An agent with an EVM wallet can discover, pay for, and use any verified API — fully autonomously. Zero account creation. Zero credit cards.

02 · On-Chain

Transparent Settlement

Successful calls settle on-chain through ChainLensMarket. Buyers get a tx hash, sellers get claimable balances, and the flow is auditable on Base.

03 · Curated

Reviewed by ChainLens

Every listing is screened by the ChainLens team — null-response checks, schema match, and a first-pass prompt-injection filter — before it ever reaches buyers.

04 · Real-Time

Fast Buyer Loop

Discover, inspect, and settle in seconds. The gateway runs the seller call immediately and only finalizes payment after a clean response.

05 · Protected

Failure-Safe Payments

If the seller fails or policy checks reject the response, the v3 gateway drops the signed authorization and no USDC moves.

06 · Extensible

Built for Scale

The stack already supports browser buyers, MCP agents, and direct x402 clients. Mainnet hardening and broader listing supply come next.

07 · Aligned

Free to List · 5% on Settlement

Sellers register for free. ChainLens only earns when a call settles successfully — a flat 5% USDC fee on each settled payment, taken from the buyer's authorization.

Base EVMChainLensMarketNode.js Gatewayx402HTTP + MCPNo KYCPre-Call Inspect

The token behind
the marketplace.

$LENS launched on Solana under the EASYA grant program — issuance, allocation, and DEX listing already complete. Utility activates as ChainLens moves from hackathon MVP to a multi-chain agent economy.

Solana
Issuance Chain
Live
Public DEX Trading
EASYA
Grant-Funded Genesis
Phase 3 · Listing Fee

Pay to Register

New sellers pay a $LENS listing fee. 50% is burned, 50% routes to the ecosystem treasury — listing supply self-rate-limits as the network grows.

Phase 3 · Visibility Boost

Stake to Surface

Quality score sets the baseline ranking. Sellers can stake additional $LENS to boost visibility — but listings below the quality threshold are excluded entirely.

Phase 3 · Governance

Holders Decide

Verification rules, dispute outcomes, and key parameters move on-chain. $LENS holders vote — ChainLens-team final-call sunsets over time.

Phase 0 (token genesis) is complete. Utility wiring above ships in Phase 3 — see the roadmap below.

From hackathon MVP
to a full agent economy.

ChainLens ships in stages — start with a working settlement loop, layer in quality data, then activate $LENS utility and decentralize governance. Locked through Consensus Miami.

Phase 0Complete

Token Genesis

  • $LENS issued on Solana under the EASYA grant
  • Allocation published; team & treasury disclosed
  • Public DEX listing live
Phase 1Now

Hackathon MVP

  • x402 settlement on Base Sepolia
  • Manual ChainLens review · null + schema + injection screening
  • Rule-based discovery (no quality score yet)
  • Free to list · 5% USDC fee on settlement
Phase 2Planned

Mainnet + Quality Layer

  • Base mainnet deployment
  • Continuous seller scoring — uptime, schema match, pass rate
  • Quality-based ranking and adaptive routing
  • Earned Verified badge (free, never bought)
Phase 3Planned

$LENS Utility

  • Listing fee in $LENS (50% burn / 50% treasury)
  • Visibility boost staking — quality floor still required
  • Governance: dispute votes, verification rules, parameters
  • Multi-chain bridge: Base ↔ Solana
Phase 4Planned

Agent-Native Discovery

  • Natural-language API search (semantic retrieval + routing)
  • Multi-API task bundles for agents
  • LangChain · CrewAI · Eliza integrations
  • Decentralized dispute resolution by stakers

Try it now.
No signup needed.

The testnet is running on Base Sepolia. Connect your wallet, pick a listing, inspect the live quality signals, and experience wallet-native API settlement firsthand.

bash — Quick Start
# 1. Search live listings
$ curl "https://chainlens.pelicanlab.dev/api/market/listings?q=weather"
# 2. Inspect one listing before spending
$ curl https://chainlens.pelicanlab.dev/api/market/listings/7
{
"listingId": "7",
"successRate": "0.98",
"price": "0.05 USDC"
}
# 3. Pay through the x402 gateway
$ curl -H "X-Payment: <signed-auth>" \
"https://chainlens.pelicanlab.dev/api/x402/7?city=seoul"
→ Returns seller response + settlement tx hash
// Mainnet Access

Get early access
when we launch

ChainLens mainnet is coming soon. Join the waitlist to be first in line — whether you're building agents, offering APIs, or watching the agent economy grow.

📋 Apply for Mainnet Access

Takes ~1 minute · No spam · Cancel anytime