POWERED BY SUI, WALRUS & SEAL

MAKE AI AGENTS PAY TO SCRAPE

Universal paywall system that enforces on-chain payments from bots and AI agents using the x402 payment protocol

server.js
const express = require("express");
const { paywall } = require("ai-paywall");

const app = express();

app.use("/hidden/dog", paywall({
  price: "0.01",
  receiver: "0x...",
  domain: "www.demo1.com"
}));

AI IS SCRAPING YOUR PREMIUM CONTENT FOR FREE

Bots, crawlers, and AI agents are accessing your research, APIs, and datasets without permission or payment. There's no standard enforcement mechanism.

WITHOUT SUI2SCRAPE

  • No way to monetize content accessed by bots and crawlers
  • Your research and APIs become free training data for AI models
  • Zero control over who accesses your content or how often
  • Content theft with no recourse or attribution

WITH SUI2SCRAPE

  • Pay-before-access enforcement via x402
  • On-chain payment verification with AccessPass
  • Configurable usage limits and rate control
  • End-to-end content encryption via Seal

HOW IT WORKS

A seamless end-to-end flow from content upload to AI agent payment

SYSTEM ARCHITECTURE

Sui2Scrape System Architecture
01

UPLOAD & ENCRYPT

Content creator uploads premium content through the gateway. Automatically encrypted with Seal and stored on Walrus decentralized storage.

02

INTEGRATE MIDDLEWARE

Install the npm package and protect your routes with the paywall() wrapper. Configure price, receiver address, and access rules in one line.

03

AI AGENT REQUESTS

When an AI agent or bot tries to access protected content, they receive a 402 Payment Required response with payment instructions.

04

ON-CHAIN PAYMENT

Agent pays via Sui smart contract. AccessPass is minted with usage limits, expiration, and metadata. Payment is verified on-chain.

05

VERIFY & DECRYPT

Gateway verifies the AccessPass, decrements usage counter, fetches encrypted content from Walrus, and Seal decrypts it.

06

ACCESS GRANTED

Decrypted content is returned to the AI agent. All transactions are logged on-chain for complete audit trail and analytics.

INTEGRATE IN MINUTES, NOT DAYS

Add AI payment enforcement to your existing application with minimal code changes

1

INSTALL THE PACKAGE

npm install ai-paywall
2

ADD THE MIDDLEWARE TO YOUR ROUTES

const express = require("express");
const { paywall } = require("ai-paywall");

const app = express();

app.use("/hidden/dog", paywall({
  price: "0.01",
  receiver: "0x...",
  domain: "www.demo1.com"
}));

app.get("/hidden/dog", (req, res) => {
  res.send(req.paywall?.encryptedBlob);
});
3

THAT'S IT! YOUR CONTENT IS NOW PROTECTED

AI agents will now receive payment instructions when they try to access your protected routes. After successful payment, they'll receive an AccessPass and gain access to your premium content.

EVERYTHING YOU NEED TO PROTECT & MONETIZE

A complete solution for content creators, API providers, and data publishers

ENCRYPTED STORAGE

Content encrypted with Seal, stored on Walrus. Only paid users can decrypt and access.

ON-CHAIN PAYMENTS

Immutable payment verification through Sui blockchain AccessPass with usage tracking.

NPM MIDDLEWARE

Simple one-line integration for any Node.js, Express, or Next.js application.

X402 PROTOCOL

Standard "402 Payment Required" flow designed specifically for AI agents and bots.

DECENTRALIZED STORAGE

Built on Walrus for reliable, censorship-resistant content delivery at scale.

ACCESS CONTROL

Fine-grained permissions with time limits, usage caps, and domain restrictions.

LIGHTNING FAST

Optimized verification flow with sub-second payment confirmation and content delivery.

WEB3 NATIVE

Fully decentralized infrastructure with no central authority or single point of failure.

POWERED BY SUI, WALRUS & SEAL

Blockchain payments, decentralized storage, and encryption working together to protect your content

Sui Blockchain

SUI BLOCKCHAIN

Stores domain-to-content mappings and mints AccessPass objects when AI agents pay. Each AccessPass tracks usage limits and expiry, enabling pay-per-access enforcement.

Walrus Storage

WALRUS STORAGE

Holds encrypted premium content off-chain. When AccessPass is verified, the gateway fetches the encrypted blob from Walrus using the CID stored on Sui.

SEAL ENCRYPTION

Encrypts content at upload and only releases decryption keys when a valid AccessPass exists. Without payment, content remains encrypted and unusable.

READY TO MONETIZE YOUR CONTENT?

Join the future of content protection and start earning from AI agents accessing your premium data.